Docking and Undocking

Try the USB device connected trigger, if a usb device with the name XXX is connected do an action. The action can be "Quit a Specific application"
Hope this helps.