I think what you want can be solved with the Sentinella app, you can do program it to monitor a script launched by you, and once this script the app shutdowns the system for you. You will need a little bit of bash, but otherwise this solves your problem.