VPN AppleScript Auto Reconnect
From BTGuard Wiki
VPN Script for Mac
This script will monitor the status of your VPN connection and will automatically try to reconnect you to the VPN if you're disconnected.
This will also allow you to select a program (utorrent in this case) that will automatically be shutdown when disconnected and reopened when reconnected.