improving reliability when running from RDC

particularly when the remote desktop connection is closed or minimized