Replaced close_socket for disconnect_all