ENH: handle crash in a more user-friendly manner.