Creating method of shutdown actions
renaming do_shutdown() -> do_state_change()
Merge pull request #1787 from multikatt/cleanup

Creating method of shutdown actions