Correct checking logic for the ending of ShareCircleServiceCommand.