Windows/Program errors prevent tightvnc connection

Currently, I have an issue on some Windows 10 machines in which popup windows (such as a Mysql error notification or a tightvnc error notification) will kill the connection and prevent any subsequent tightvnc connections from being made. This is a problem for obvious reasons. Usually I can vpn into another computer in the network, use remote desktop into the offending machine, kill the popup, and regain tightvnc access. Any suggestions for a better solution?