(B) by filing a stipulation of dismissal signed by all current parties to the action. Unless otherwise stated in the notice or stipulation, the dismissal is without prejudice, except that a notice of dismissal operates as an adjudication on the merits when served by a plaintiff who has once dismissed in any court an action based on or including the same claim.
(c) Dismissal of Counterclaim, Crossclaim, or Third-Party Claim. The provisions of this rule apply to the dismissal of any counterclaim, crossclaim, or third-party claim.
(d) Costs. Costs in any action dismissed under this rule shall be assessed and judgment for costs entered in that action, once the action is concluded as to the party seeking taxation of costs. When one or more other claims remain pending following dismissal of any claim under this rule, taxable costs attributable solely to the dismissed claim may be assessed and judgment for costs in that claim entered in the action, but only when all claims are resolved at the trial court level as to the party seeking taxation of costs. If a party who has once dismissed a claim in any court of this state commences an action based upon or including the same claim against the same adverse party, the court shall make such order for the payment of costs of the claim previously dismissed as it may deem proper and shall stay the proceedings in the action until the party seeking affirmative relief has complied with the order.
(e) Failure to Prosecute. In all actions in which it appears on the face of the record that no activity by filing of pleadings, order of court, or otherwise has occurred for a period of 10 months, and no order staying the action has been issued nor stipulation for stay approved by the court, any interested person, whether a party to the action or not, the court, or the clerk of the court may serve notice to all parties that no such activity has occurred. If no such record activity has occurred within the 10 months immediately preceding the service of such notice, and no record activity occurs within the 60 days immediately following the service of such notice, and if no stay was issued or approved prior to the expiration of such 60-day period, the action shall be dismissed by the court on its own motion or on the motion of any interested person, whether a party to the action or not, after reasonable notice to the parties, unless a party shows good cause in writing at least 5 days before the hearing on the motion why the action should remain pending. Mere inaction for a period of less than 1 year shall not be sufficient cause for dismissal for failure to prosecute.
(f) Effect on Lis Pendens. If a notice of lis pendens has been filed in connection with a claim for affirmative relief that is dismissed under this rule, the notice of lis pendens connected with the dismissed claim is automatically dissolved at the same time. The notice, stipulation, or order shall be recorded.