IrcConnection: make sure to clear the closed & ssl error flags