improved harakiri for signal handlers