halt stream capturer after server terminates