Better error handling in handleFileChecksum()