changing the exit from route_messages