Handling errors for checksum in output file