Initial implementation code.
Close FrameStream after rendering