Clean-up NetworkWebSocket object creation