Close exit_socket