Fix bug with the disconnect event being fired twice when name is already
in use