Output stream needs to be created just before it is used.
Test for transferring scene from client to server.