Delete the output file upon errors