Implement stream end method

* disconnects client from irc