Angel Medina appeals from the district court’s order dismissing his lawsuit on the ground of res judicata. We affirm and award double costs to the defendant.
On January 8, 1982, Medina filed a wrongful discharge suit against his former employer, the Chase Manhattan Bank (Bank), in the Superior Court of Puerto Rico. The Bank answered the complaint on February 11 and deposed Medina on April *142 7. On July 9, Medina filed a motion for voluntary dismissal without prejudice, presumably under Rule 39.1 of the 1979 Rules of Civil Procedure of Puerto Rico. The Bank opposed the motion and asked the court to dismiss with prejudice. On July 13 the court issued an order stating (our translation): '
“Having considered the petition for voluntary dismissal formulated by the plaintiff, the Court gives its approval. By virtue of this, Judgment is entered dismissing with prejudice the present case.”
On August 5 Medina filed a motion to withdraw his previous request for voluntary dismissal. In this motion Medina emphasized that the previous motion had asked for dismissal without prejudice, and he argued that dismissal with prejudice was inappropriate. On August 16 the court denied the withdrawal motion without comment. Medina petitioned for review by the Supreme Court of Puerto Rico, but this was denied on September 15; reconsideration was denied on October 7.
Medina moved to Florida and filed the present lawsuit in federal court on December 20, 1982. In all material respects the complaint is identical with that in the previous case, except for the allegation of diversity jurisdiction. The Bank raised the defense of res judicata in its answer, filed on January 27, 1983. The case was referred to the magistrate, who recommended that the case be dismissed on res judicata grounds. On July 29, 1983 the district court approved the magistrate’s report and granted the Bank’s motion for summary judgment.
This Court must give full faith and credit to the judgments of the courts of Puerto Rico. 28 U.S.C. § 1738 (1982). “Section 1738 requires federal courts to give the same preclusive effect to state court judgments that those judgments would be given in the courts of the State from which the judgments emerged.”
Kremer v. Chemical Construction Corp.,
The plaintiff argues that res judicata could not arise because the Superior Court’s dismissal was not a decision on the merits. This argument is wholly without foundation. In Bolker the Supreme Court of Puerto Rico stated,
“The general rule is that, in the absence of a statutory provision or rule of procedure, a judgment dismissing a complaint for abandonment or want of prosecution does not estop plaintiff from prosecuting another suit on the same cause. This proposition is derived from the general principles which requires [sic] adjudication upon the merits in order that the defense of res judicata shall prosper.”
“Except as provided by Rule 39.1(a), an action shall not be dismissed at the plaintiff's instance except upon order of the court and upon such terms and conditions as the court deems proper. Unless otherwise specified in the order, a dismissal under this paragraph is without prejudice.”
It is clear, however, that the court
may
order that dismissal be with prejudice. In
de la Matta v. Carreras,
“[I]t would not be logical to assume that plaintiffs right of dismissal is always without prejudice____ [I]n this ease, plaintiffs right of dismissal is not absolute ____ [T]he unanimous view of other courts and textbook writers is that the allowance of a motion to dismiss under federal Rule 41(a)(2), 39.1(b) ours, is not a matter of absolute right of plaintiff; that it is discretionary with the court upon such terms and conditions as the court deems proper. This being so, it is not difficult to conclude that the condition that the dismissal be with prejudice, may be one of the conditions imposed by judicial discretion.”
Medina argues that prejudicial dismissal was erroneous under the Rule, and was a “miscarriage of justice”. Medina has misstated the facts. Contrary to the assertions in Medina’s brief, the Bank had filed an answer and had deposed Medina before Medina moved for dismissal. Dismissal could therefore be obtained only with court approval. The court could reasonably have concluded that if Medina were allowed to start again, the Bank would be prejudiced. The Court clearly had the
power
to make this decision. Whether the court
ought
to have done so is not a matter for collateral review. A final judgment does not lose its res judicata effect simply because another court might consider the decision erroneous.
Bolker,
Puerto Rican law recognizes a number of exceptions to the doctrine of res judicata. A judgment may be without res judicata effect where: (1) the judgment was rendered pursuant to an invalid acceptance of the claim by the defendant; (2) the court was without jurisdiction to enter the judgment; (3) an attempt to appeal was unsuccessful through no fault of the plaintiff; (4) there is fraud; (5) there is a mis-, carriage of justice; or (6) public policy demands an exception to res judicata.
See Rodriguez,
In the present case, the magistrate concluded that the courts of Puerto Rico would not apply the “public policy” exception. We agree. This case has none of the elements that were important in
Pérez
and
Millán.
In particular, we note that the present suit is brought by the same plaintiff, and the same attorney, as the previous suit, and that the previous judgment was rendered in an ordinary civil proceeding. As the magistrate noted, “public policy” also includes an interest in finality and efficiency.
See, e.g., Mercado Riera v. Mercado Riera,
*145
The only other way for Medina to escape res judicata is to show that he was denied due process in the previous proceeding. “A state may not grant preclusive effect to a constitutionally infirm judgment.”
Kremer,
The Bank has requested us to assess punitive sanctions on the ground that this appeal is frivolous. 28 U.S.C. § 1912 (1982); Fed.R.App.P. 38, 39. In the light of the Superior Court’s explicit order, authorized by Rule 39.1(b), that dismissal be “with prejudice”, the plaintiff’s argument that res judicata could not attach was plainly frivolous. The boundaries of the “public policy” exception, however, are not precisely defined. For this reason we cannot say that the plaintiff’s appeal was brought “in bad faith, vexatiously, wantonly, or for oppressive reasons”,
Cordeco Development Corp. v. Santiago Vasquez,
The judgment is AFFIRMED with double costs on this appeal to be recovered by the appellee Chase Manhattan Bank.
