cleanup signalhandler stuff