Terminate the service with a reason.

def terminate(self, reason=None):
        """Terminate the service with a reason."""
        self.logger.info('terminating')
        self.loop.unloop(pyev.EVUNLOOP_ALL)