Handles closing a bad db better; reports error on failing to read header