Finished implementing shutdown command