Did you try this inside the onpulse event .. if so try to create a new thread for it to close the errors like notification ok clicker does.. if that is not working wait for that error to pop or simulate a dc with tcpview to close the d3 connection or simply unplug your internet connection ...