adding support for shutdown operation