Correctly disposing IrcConnection
Minor connection.js changes