Use close_socket()