Registers SIGTERM signal handler.

def _register_sigterm(self):
        """ Registers SIGTERM signal handler.
            """

        _handler = lambda signo, frame: self.shutdown()
        signal.signal(signal.SIGTERM, _handler)