Removed shutdown commands and added logging.