You could get the PID in the script before you dance; and use it as a conditional in the END block.
In reply to Re^3: Dancer2 start/stop hooks by 1nickt in thread Dancer2 start/stop hooks by morgon