Dispose of the server stream writer when it is not needed

Because we don't use the "using" block for the stream writer we need to
dispose of it when the server process ends.
fixes #14
fixes #13