raw: sw_close and sw_shutdown use list_remove_socket.