fix duplicate disconnects