Fix to leave socket room