extract signal trapping to SignalTrapper