I think I figured it out.

#!/bin/bash
killall /usr/bin/indiserver
exit 0
Works in the scheduler as a shutdown script. When bash closes, it gives a return code.

Read More...