recover from exceptions in the crash handler

this should fix a number of dying daemons in production, if the remote host is
down.