Shutdown refinement

Refined the shutdown process and modified logging statements and levels of the shutdown processes.