[fix] dont try and write to the socket if we do not exist yet