Update assignment client to close on WM_CLOSE message on Windows