If a petitioner who has once dismissed an action in any court commences an action based upon or including the same claim against the same respondent, the court may make such order for the payment of costs of the action previously dismissed as it may deem proper and may stay the proceedings in the action until the petitioner has complied with the order.
Id. Fam. Law. P. 124