e.g. changing the code to this:
WriteStream(listenerResponse.OutputStream)
.Subscribe(s =>
{
try
{
s.Close();
throw new System.Net.Sockets.SocketException();
will cause the entire app to exit. Would be nice to pass any exceptions back up the chain for handling via the app itself.