@jkandasa Thanks for thinking about it.
It is really not a problem, more a case of ''I wonder if that would be possible". I can load a python script at startup and use that to monitor the gpio pins to run the shudown script.
Do you think it will be an issue with mcagent also running? Could there be a conflict with both python and mcagent trying to access the gpio ports?