'Undoes rerouting'

def exit(self, exc_type=None, exc_val=None, exc_tb=None):

    for alias in self._aliases:
        channel_layer = channel_layers[DEFAULT_CHANNEL_LAYER]
        channel_layer.routing = self._old_routing[alias]
        channel_layer.router = Router(self._old_routing[alias])
