modifed automation framework to shutdown