close_socket instead of disconnect