Add a test for the dump with a checksum
Close the channels if there is an error so that there's no deadlock