'Resets signal handlers for signals in _SIGNALS.'

def _reset_signal_handlers(self):

    for signum in self.prev_handlers:
        signal.signal(signum, self.prev_handlers[signum])
    self.prev_handlers.clear()
