Require an explicit command for raw IRC.
Add a /quit command to properly quit.
Track whether we should be connected or not.

If we aren't explicitly supposed to be connected then don't reconnect.
Remove socket from selector before closing.
Be a bit more picky about what a URL is.