Simplify IRC socket closing