Adden new shutdown action, simmilar to init but run at the end of the dispatch loop