AppletContext.setStream doesn't save the stream when the browser is closed