openvpn sets an environment variable 'signal' when calling the down script ; when a users stops openvpn you'd see something like
signal=sigint
when openvpn shuts down due to a 'ping-restart' you will see
signal=ping-restart
write your down.bat file to look for this signal and adjust the firewall/routing rules accordingly.