better handling for corrupted chain file errors