Improved error handling for Checksum