Add the ramping down of power procedure from trigger input (on interrupt).
This has been tested by triggering the inputs and checking that the procedure starts.
Further triggering or changes on inputs while powering down also do not affect execution.