Adding functionality to stop irc-factory. Fixes #195