Add button "When finished doing"

It would be very useful to include this function, soppratutto for long jobs during the night or when you are not present, with various options such as: Nothing/Close/Standby/Hibernate/Shutdown
Thanks