`pause_connectors` was recently updated to return a deferred that fires once the messages currently being processed are done, so this should now become `yield self.pause_connectors()`.