Fixed error path to properly close file
1 file changed