Update assignment client to close on WM_CLOSE message on Windows

StackManagerQt sends a WM_CLOSE when closing a process, but by default they are not handled - this adds handling for those messages.
I think that would be good.  What about for disabling buffering on stdout and stderr?