Implemented client side of shutdown command