cleanup exception handling on SIGUSR1