Add ws_socket deinit functionality