properly log and recover from hash error