def METHOD_NAME(self):
    d = defer.Deferred()
    def _shutdown(_):
        if self._shutdown:
            return
        self._shutdown = True
        self.state.orm_tp.stop()
        d.callback(None)
    reactor.callLater(30, _shutdown, None)
    self.stop_jobs().addBoth(_shutdown)
    return d