use the correct socket method on disconnects