Clean exit when controller disconnected