Implement shutdown command.