Fix logstream

Getting exception when you click twice on the Unbind button.
--
ObjectDisposedException was unhandled
Cannot write to a closed TextWriter.