Only writing to IRCd socket if it exists