[¶ 1] Green Tree Servicing, LLC, commenced this residential foreclosure action against Thelma J. Cope even though it did not own the mortgage on Cope’s property and therefore did not have standing. Shortly before the trial was to be held, Green Tree moved to dismiss its complaint without prejudice for lack of standing. See M.R. Civ. P. 41(a)(2). The Superior Court (Cumberland County, Mills, J.) dismissed the complaint but ordered that the dismissal was with prejudice as a sanction for Green Tree’s pretrial conduct. Green Tree moved for reconsideration, see M.R. Civ. P. 59(e), and the court entered an amended order that dismissed the action without prejudice based on its conclusion that it did not have the authority to impose a dismissal with prejudice, even as a sanction, because Green Tree did not have standing to bring the foreclosure complaint in the first place.
[¶2] On this resulting appeal by Cope,
I. BACKGROUND
[¶ 3] In May 2014, Green Tree Servicing, LLC, filed a complaint against Cope to foreclose on her residential property located in Portland.
[¶4] After an unsuccessful mediation session held in September 2014, the court issued a scheduling order that established a discovery deadline of March 16, 2015, and a deadline for motions fourteen days after the close of discovery. In late May, the parties were notified that a trial would be held on July 21. On July 1 — three months after the court-ordered deadline to file motions — Green Tree moved to amend its complaint to join First Magnus Financial Corporation Liquidating Trust, the successor to the original lender, as a defendant, and to add a claim for a declaratory judgment that would determine the parties’ respective interests in the note and mortgage. See M.R. Civ. P. 15(a). These proposed amendments related to Green Tree’s deficient interest in the mortgage— a problem that can be traced to an initial assignment by MERS as “nominee” for the original lender, ultimately resulting in Green Tree not having standing to foreclose on the property. See Bank of Am., N.A v. Greenleaf
[¶ 5] On July 13, Green Tree filed a motion to dismiss its foreclosure complaint without prejudice pursuant to M.R. Civ. P. 41(a)(2), acknowledging that it lacked standing to proceed with the action. Cope opposed the motion, arguing that the action should be dismissed %úth prejudice or alternatively that the court should enter a judgment in her favor. At a hearing on Green Tree’s motion,
[¶ 6] In January 2016, the court issued an order denying Green Tree’s motion to dismiss its complaint without prejudice, instead dismissing the complaint with prejudice. In its order, the court identified two bases for that decision. First, the court found that this was the third foreclosure complaint filed against Cope based on the same note and mortgage.
[¶ 7] Second — and more significant to this appeal — the court found that Green Tree had known since at least July 2014, when we issued our decision in Greenleaf, that it would not be able to establish
[¶ 8] Green Tree filed a timely motion for reconsideration, see M.R. Civ. P. 59(e), arguing that because it lacked standing to pursue this foreclosure action, the court was only authorized to dismiss the complaint without prejudice, based on our recent decisions in U.S. Bank N.A. v. Curit,
[¶9] The court granted Green Tree’s motion for reconsideration in March 2016. The court explained that although it had “intended the dismissal with prejudice to serve as a sanction,” our decisions in Curit and Dyer left it with “little discretion to dismiss [a] foreclosure action[ ] with prejudice when the plaintiff lacks standing, even when the plaintiff has engaged in dilatory conduct that warrants a sanction.” The court further stated that contrary to Cope’s argument, it could not “bifurcate the standing analysis by dismissing the action with prejudice as to only the note.” Accordingly, the court entered an amended judgment dismissing Green Tree’s complaint without prejudice.
[¶ 10] Cope timely appealed. See 14 M.R.S. § 1851 (2016); M.R. App. P. 2.
II. DISCUSSION
[¶ 11] Cope argues that the court erred by granting Green Tree’s motion for reconsideration and entering an amended judgment dismissing Green Tree’s foreclosure complaint without prejudice. Specifically, Cope contends that the amended judgment was the product of the court’s misapprehension of the extent of its discretionary authority to dismiss Green Tree’s foreclosure complaint with prejudice as a sanction, regardless of whether Green Tree had standing to bring the action.
[¶ 12] A court’s decisions to grant a Rule 59 motion and to dismiss a complaint without prejudice are generally each reviewed for an abuse of discretion. See Dyer,
[¶ 13] In several recent decisions, we have stated that when a court dismisses a foreclosure complaint because the putative mortgagee lacks standing, the dismissal must be without prejudice. See Curit,
[¶ 14] Here, in its initial order of dismissal, the court found that Green Tree had pursued its foreclosure claim for one year after we issued our opinion in Green-leaf, knowing that it did not own the mortgage and therefore did not have standing, and then waited until one week before trial to seek dismissal of its complaint. In its amended order, the court made even more clear that it had “intended the dismissal with prejudice to serve as a sanction.” The question here is whether, once the court determined that Green Tree lacked standing, it still had authority to dismiss Green Tree’s complaint with prejudice based on its finding that Green Tree had engaged in sanctionable conduct.
[¶ 15] As provided in certain provisions of the Maine Rules of Civil Procedure and our case law, courts are vested with discretion to dismiss an action with prejudice as a sanction for various types of pretrial misconduct. For example, in the foreclosure context, we have recognized a court’s discretionary authority to dismiss a complaint with prejudice based on the mortgagee’s failure to make a good faith effort to mediate, see M.R. Civ. P. 93(j); U.S. Bank, N.A. v. Sawyer,
[¶ 16] Further, Rule 41(a)(2), which was the basis for the court’s dismissal in this case, expressly states that “[u]nless otherwise specified in the order, a [voluntary] dismissal ... is without prejudice,” but that Rule also authorizes a dismissal “upon order of the court and upon such terms and conditions as the court deems proper.” (Emphasis added.) The language per
[¶ 17] The broad discretion granted to courts to sanction a party for its noncompliance with various procedural rules demonstrates that a court is not barred from imposing sanctions — including a dismissal with prejudice — even when the plaintiff lacks standing to pursue a foreclosure claim. Cases such as Curit and Dyer, which hold that absent standing a dismissal must be without prejudice, are based on the materially different circumstance where a putative mortgagee’s lack of standing is the sole basis to dismiss its complaint. Here, in contrast, the court made clear that it had “intended the dismissal with prejudice to serve as a sanction,” noting that Green Tree had pursued its claim as if it would be tried, and had waited until one week before trial to seek dismissal of its complaint, even though it had “kn[own] for months” that it would be unable to obtain an assignment of the mortgage sufficient to confer standing. The court therefore determined that the nature of the dismissal of Green Tree’s complaint should reflect considerations going beyond its mere lack of standing, thus making this case distinguishable from Cu-rit and Dyer.
[¶ 18] A dismissal with prejudice imposed as a sanction is not an adjudication of the merits of a plaintiffs claim. Rather, the imposition of a sanction represents the court’s “determination of a collateral issue: whether the [party or] attorney has abused the judicial process.” Willy v. Coastal Corp.,
[¶ 19] Having concluded that a court has the discretion to impose the ultimate sanction of a dismissal with prejudice against a plaintiff in a foreclosure action even when the plaintiff lacks standing, we take this opportunity to outline the procedural steps that a court should follow when determining whether such a sanction is proper, consistent with basic principles of due process. The process outlined here closely tracks, the thoughtful procedures employed by the court in this case.
[¶ 20] First, before imposing a dismissal with prejudice as a sanction, a court should ordinarily ensure that reasonable steps are taken to provide the plaintiff with adequate notice that such a result will be considered. See Sawyer,
[¶ 21] Second, the court must provide the plaintiff with an opportunity to be.heard on the issue of whether the case should be dismissed with prejudice. Compare Manning,
[¶ 22] Third and finally, if, after notice to the plaintiff and an opportunity for it to be heard, the court determines that a dismissal with prejudice is proper, its judgment should clearly define what the dismissal with prejudice means— its impact on particular parties and particular claims, for example — so that the effect of the order is clear to the parties, to us in the event of an appeal, and to a trial court in the event of future litigation. As we have previously stated, when the court enters a judgment on the merits of a foreclosure complaint, the court should not speculate about the potential effect of the judgment on future litigation, because any such comment would constitute an improper advisory opinion. See Mackenzie,
[¶ 23] In sum, because Green Tree’s lack of standing did not deprive the court of its discretion to dismiss Green Tree’s complaint along with “terms and conditions [that] the court deems proper,” M.R. Civ. P. 41(a)(2), we vacate the order dismissing the complaint without prejudice and remand for the court to determine whether a dismissal with prejudice — or any other sanction — remains appropriate in the circumstances in this case.
The entry is:
Judgment of dismissal without prejudice vacated. Remanded for further proceedings consistent with this opinion.
Notes
. Although Cope’s appeal is from a judgment in her favor, she has standing to "appeal because sufficient adverse collateral consequences could arise from the portion of the judgment that [s]he challenges.” U.S. Bank, N.A. v. Tannenbaum,
. The complaint named, as a party-in-interest, the Bank of New York Mellon, which Green Tree alleged held a junior interest in the mortgaged property. See 14 M.R.S. § 6321 (2014), amended by P.L. 2015, ch. 229, § 1 (effective October 15, 2015). The Bank has not participated in this appeal.
. We issued our decision in Bank of America, N.A. v. Greenleaf
. Cope has not included a copy of the hearing transcript as part of the record on appeal.
. In her filings with the court, Cope acknowledged that Green Tree was not the plaintiff in those prior foreclosure actions.
. Although the record does not contain the stipulation of dismissal in the first case or the order of dismissal in the second case, the parties do not dispute the history of those prior foreclosure actions as stated by the court.
. Pursuant to M.R. Civ. P, 41(a), a complaint may be voluntarily dismissed in two ways. First, "an action may be dismissed by the plaintiff without order of court (i) by filing a notice of dismissal at any time before service by the adverse party of an answer or of a motion for summary judgment, whichever first occurs, or (ii) by filing a stipulation of dismissal signed by all parties who have appeared in the action .... ” M.R. Civ. P. 41(a)(1). Second, an action may be dismissed “upon order of the court and upon such terms and conditions as the court deems proper.” M.R. Civ. P. 41(a)(2). Unless otherwise stated in the notice or order of dismissal, a voluntary dismissal is without prejudice, except that, as noted in the text, a notice of dismissal pursuant to Rule 41(a)(1) "operates as an adjudication upon the merits when filed by a plaintiff who has once dismissed in any court ... an action based on or including the same claim.”
. Although the record does not contain information referring to Green Tree’s deposition of Cope, the parties do not dispute that the deposition took place.
. In U.S. Bank National Association v. Manning,
. To the extent that our decisions in U.S. Bank N.A. v. Curit,
. Although the court’s initial order of dismissal was with prejudice, it would be inappropriate for us, in the context of an appeal, to simply reinstate the terms of that dismissal. Rather, the determination of the terms and conditions of a dismissal are particularly within a trial court’s discretion, Accordingly, we do not reach the merits of Cope’s arguments that it would be proper for the trial court to issue a dismissal with prejhdice, or
