Re-assign the server stream writer when starting server

Simple two-line fix for #6 and #7
fixes #6
fixes #7