Implement queue/exit.
Consider disconnect in queue.js.

Now, queue.js handles socket disconnect.