close file if exception