Opinion
SULLIVAN, J.
The sole issue raised by this appeal is whether a temporary custody order entered by the Superior Court for Juvenile Matters pursuant to General Statutes (Rev. to 1995) § 46b-129 (a) and (b)2 is a final [385]*385judgment for purposes of appeal. The respondent father, Genero F.,3 argues that the trial court improperly issued temporary custody orders and that he was entitled to “postpone” his appeal of those temporary orders until issuance of a final judgment terminating his parental rights. We disagree and conclude, as we did in Madigan v. Madigan, 224 Conn. 749, 757, 620 A.2d 1276 (1993), that “temporary custody orders are immediately appealable because an immediate appeal is the only reasonable method of ensuring that the important rights surrounding the parent-child relationship are adequately protected”; id.; and, further, that an immediate appeal is the only way to ensure the protection of the best interests of children. We conclude, therefore, that the respondent’s collateral attack on the temporary custody order, after the order terminating parental rights [386]*386had been entered, is “ ‘a procedurally impermissible substitute for an appeal.’ ” Joe’s Pizza, Inc. v. Aetna Life & Casualty Co., 236 Conn. 863, 876, 675 A.2d 441 (1996). We therefore affirm the judgment of the Appellate Court dismissing the respondent’s appeal.
The record of the proceedings below reveals the following facts and procedural history. The respondent is the father of Shamika F. and her three siblings, whose custody is at issue in this appeal.4 The children’s mother is not a party to this appeal. The respondent’s family had a history with child protection services in the Bronx, New York, prior to moving to Connecticut in 1995. In 1995, the family became involved with the Connecticut department of children and families (department) after reports were received that the children were neglected and without parental supervision. Investigations conducted by the department disclosed that the respondent’s four children lived in a dirty apartment where there was no food and no furniture. The youngest child was not toilet trained, but had no diapers and little clothing. The older children were scantily clad or wore clothes that did not fit. There was evidence that both parents used narcotics and that the respondent had, at one time, received psychiatric treatment at Hartford Hospital. In interviews with social workers, the children stated that their parents often left them alone while they went out to buy drugs. In December, 1995, the family left Connecticut without notifying the department. In January, 1996, when the social worker assigned to the case was unable to obtain a new address for the family, the case was closed.
In March, 1996, the department received reports that the family had returned to Connecticut, that the children were being neglected, and that they went to school [387]*387hungry or that they did not attend school at all. After receiving these reports, the department reopened the family’s case file. Subsequent investigation determined that the family had in fact returned to Connecticut, that the children continued to live in conditions dangerous to their well-being, and that they again frequently were left without parental supervision. The situation was such that on March 29, 1996, a “ninety-six hour hold” on the children was granted to the commissioner of the department (commissioner) pending further investigation to determine neglect and to proceed on petitions for temporary custody.
In April, 1996, the commissioner filed neglect petitions as to Shamika F. and her three siblings pursuant to General Statutes (Rev. to 1995) § 46b-129 (a).5 At the same time, the commissioner filed a petition for an ex parte order of temporary custody pursuant to § 46b-129 (b). The petition for temporary custody was granted on April 2, 1996, and a hearing was scheduled for April 12, 1996, as required by General Statutes (Rev. to 1995) § 46b-129 (b), to address the ex parte order. Both parents were served with a notice of the order and were present at the April 12,1996 hearing, at which time they were advised of their rights and informed of the charges of neglect.6 The respondent did not raise any jurisdictional challenges to the court’s granting of the temporary custody orders at that time. On May 30, 1996, the respondent appeared, with counsel, at the hearing on the neglect petitions, and entered pro forma denials [388]*388with respect to the charges of neglect. At that time, the children’s mother requested that they remain in the commissioner’s custody. The respondent neither objected to this request nor raised any jurisdictional challenge at the neglect proceedings. On June 28, 1996, the trial court found, by a fair preponderance of the evidence, that the children were being neglected by their parents.7 Thereafter, the children were committed to the care and custody of the commissioner for a period of twelve months without objection from the parents.
At the same time as it made the neglect determination, the court imposed requirements on the parents in order to deal with the issues that were causing them to neglect their children. Extensive referrals to drug counseling providers and parenting classes were made for both parents, yet neither showed any dedication to, or progress from, the assistance available. In June, 1997, the commissioner filed a petition for a twelve month extension of the children’s commitment to the department pursuant to General Statutes (Rev. to 1997) § 46b-129 (d).8 Both parents were notified of the petition to extend [389]*389commitment and neither objected. The extension was granted, and the parents were given additional time for rehabilitation and reunification with their children. The children’s mother, however, participated infrequently in the programs provided and made little or no progress. As late as March, 1998, she tested positive for heroin use. The respondent did not participate in any of the programs recommended by social workers and made available through the department. In March, 1998, the parents returned voluntarily to New York despite the children’s placement in Connecticut foster homes while they were under the care and custody of the Connecticut department. As a result, the respondent and the children’s mother missed at least three scheduled visits with their children in February and March, 1998.
[390]*390In April, 1998, pursuant to General Statutes (Rev. to 1997) § 17a-112,9 the commissioner of the department filed petitions to terminate the parental rights of the [391]*391respondent and the children’s mother on the grounds [392]*392of neglect, failure to rehabilitate and failure to comply with reunification efforts.10 The parents were served with the petitions for termination and notified of the [393]*393hearing that would take place on May 21, 1998. Neither parent was present on that date. Instead, counsel for the respondent argued, pursuant to a motion for in-court review, that the court should consider transferring the case to the New York state child protection agency under the Interstate Compact on the Placement of Children.11 The court denied the motion, noting that “more delay and disruption” was not in the best interest of the children in light of the fact that all of them were well established in the Connecticut foster care system. A transfer to New York would require that state’s child protection agency to restart the process and uproot the children.12
In June, 1998, during the pendency of the termination petition, the commissioner again filed a petition for a twelve month extension of the children’s commitment [394]*394to the department pursuant to General Statutes (Rev. to 1997) § 46b-129 (d), which the court granted. Both parents were notified that the commissioner was seeking another extension of the children’s commitment. There is no evidence in the record that the respondent challenged the extensions of temporary custody despite his presence at the hearings. From March, 1998, until the termination of parental rights proceedings in 1999, the parents had few visits with their children. The children have continued to reside in foster homes since their placement in June, 1996.13 Notably, according to social workers, the children showed little attachment to their biological parents and rarely spoke of them.
In January, 1999, prior to the trial on the termination petitions, the respondent again challenged Connecticut’s jurisdiction over the matter, filing a “Motion for Order Disowning or Declining Subject Matter Jurisdiction.” In his supporting memorandum of law, the respondent made several arguments refuting Connecticut’s jurisdiction. First, he argued that the commissioner was infringing upon his constitutionally protected “right to travel,” because the department’s custody of his children forced him to remain in Connecticut despite the availability of better job opportunities and more family support in New York. Second, he argued that, according to the Uniform Child Custody Jurisdiction Act (act); see General Statutes (Rev. to 1999) § 46b-90 et seq.;14 New York, not Connecticut, was [395]*395the home state of Shamika F. and her siblings. Citing General Statutes (Rev. to 1999) § 46b-91 (a) (3), the respondent claimed that the family had a closer connection with New York than Connecticut, and that they had not lived in Connecticut for six consecutive months prior to the commencement of the original neglect proceedings.15 Finally, the respondent argued that the commissioner “is not, and cannot be, ‘a parent or person acting as parent,’ within contemplation of the [act].”16 [396]*396Citing the act as adopted by Connecticut and other states, the commissioner opposed the respondent’s motion on the grounds that: (1) Connecticut had been the children’s home state since at least 1996; (2) adjudication in Connecticut was in the best interest of the children because of the family’s substantial connection to the state; and (3) the children needed to be removed from an emergency situation in Connecticut, giving the department in Connecticut original jurisdiction under § 46b-129 (b). Furthermore, the commissioner argued that, despite the Superior Court’s power to decline jurisdiction where doing so would be in the best interests of the children; see General Statutes (Rev. to 1999) § 46b-97; such action would not be prudent in this case because of the children’s significant connection to Connecticut and to their Connecticut foster parents. It was also the commissioner’s position that, because termination proceedings were separate from neglect proceedings, the children had lived in Connecticut for more than six months before the filing of the termination petitions. In fact, the children had been living in Connecticut since at least 1996 when they were first adjudicated as neglected and placed in the care and custody of the commissioner.17
[397]*397At a hearing on the jurisdictional issue held on January 11, 1999, the court agreed with the commissioner and denied the respondent’s motion, concluding that Connecticut had jurisdiction over the matter based on the facts that (1) there were no proceedings pending in New York; (2) the children had been in Connecticut foster care since being adjudicated neglected in 1996 and ordered into the custody of the department; (3) all of the children’s caregivers since 1996 were located in Connecticut; and (4) the only connection the family had to New York was the parents’ voluntary relocation there in 1998, despite the children’s establishment in Connecticut foster homes. On the basis of these determinations, the court found that it was in the best interest of the children “that they not be up and moved simply to make accommodations to the present residence of the parents in New York.”18
On February 8, 1999, a hearing was conducted to determine whether parental rights should be terminated. At the hearing, several witnesses testified regarding the parents’ neglect of the children, the alleged physical, sexual and substance abuse that took place in the home, and the negative psychological effect the parents had on their children. Social workers from the department testified to the fact that the parents did not take advantage of the rehabilitation programs offered to them. In its memorandum of decision dated February 26, 1999, the trial court found by clear and convincing evidence that the parents of Shamika F. and her siblings had failed to rehabilitate themselves in order to reunify their family despite the department’s reasonable efforts [398]*398to facilitate such rehabilitation and reunification.19 The trial court concluded that as of April 23, 1998, neither parent had complied with the requirements of any assigned rehabilitation program and that, because of their behavior, they had denied the children the care, guidance or control necessary for their physical, educational or emotional well-being. In accordance with § 17a-112; see footnote 9 of this opinion; therefore, the court concluded that: (1) both the respondent and the children’s mother had abandoned their children; and (2) neither parent had achieved a degree of personal rehabilitation that would encourage the belief that they could assume a responsible position in their children’s lives. As a result, an order terminating parental rights was entered on February 26, 1999.
In his appeal to the Appellate Court, the respondent challenged the trial court’s decision to terminate his parental rights to his four minor children. He based his challenge, however, on alleged jurisdictional errors committed by the court in the 1996 temporary custody proceedings, rather than on any alleged error committed in the course of the termination proceedings. In a motion to dismiss the appeal, the commissioner argued that, because the neglect and temporary custody proceedings were separate and distinct from the termination proceedings, the respondent’s appeal raised an impermissible collateral attack on a previous final judgment in a prior proceeding. First, the commissioner asserted that the respondent’s appeal was barred on [399]*399timeliness grounds because he was raising claims of error in a proceeding that took place three years earlier, in violation of Practice Book § 63-1 (a), which provides that “an appeal must be filed within twenty days of the date notice of the judgment or decision is given. . . .” Second, the commissioner argued that “[a] collateral attack on a judgment [in a prior, separate proceeding] is a procedurally impermissible substitute for an appeal.” (Internal quotation marks omitted.) Joe’s Pizza, Inc. v. Aetna Life & Casualty Co., supra, 236 Conn. 876.
In his opposition to the motion to dismiss, the respondent argued that termination of his parental rights was a final judgment from both the initial neglect and temporary custody proceedings and the termination proceedings, and that any appeal prior to that would have been premature and dismissed as interlocutory. This, he argued, was because the two proceedings are both part of a collective decision regarding parental rights, and are not separate and distinct. Therefore, he claimed that challenging the temporaiy orders was not a collateral attack on a previous judgment. Finally, he argued that even if his claims were held to be collateral attacks on the neglect and temporary custody proceedings, they should not be barred because his challenge to the temporary custody orders was grounded in the trial court’s lack of subject matter jurisdiction, and he may appeal that issue at any time. See In re Juvenile Appeal (85-BC), 195 Conn. 344, 363, 488 A.2d 790 (1985) (question of subject matter jurisdiction may be raised at any time in proceedings). Finding no merit in the respondent’s arguments, the Appellate Court granted the commissioner’s motion to dismiss, and the respondent petitioned this court for certification to appeal pursuant to Practice Book § 84-1.20 We granted certification to [400]*400appeal limited to the following question: “Is an order of temporary custody a final judgment for purposes of appeal or must any such appeal wait until an order of termination of parental rights is entered in the matter?” In re Shamika F., 252 Conn. 940, 757 A.2d 2 (2000).
“The right of appeal is purely statutory [and stems from General Statutes § 52-263]. It is accorded only if the conditions fixed by statute and the rules of court for taking and prosecuting the appeal are met.” (Internal quotation marks omitted.) State v. Curcio, 191 Conn. 27, 30, 463 A.2d 566 (1983).21 Not only must the appellant be aggrieved by the decision of the court, but the appeal must be taken from a final judgment of the court. “Because our jurisdiction over appeals, both criminal and civil, is prescribed by statute, we must always determine the threshold question of whether the appeal is taken from a final judgment before considering the merits of the claim.” Id., and cases cited therein. General Statutes § 46b-142 (b), regarding juvenile matters, provides in relevant part: “The Department of Children and Families, or any party at interest aggrieved by any final judgment or order of the court, may appeal to the Appellate Court in accordance with the provisions of section 52-263. ...” (Emphasis added.) Thus, it is important for us to determine initially whether the determinations made regarding neglect and temporary custody were final for purposes of appeal.
In general, we recognize the statutory principle that appellate jurisdiction is limited to appeals from final [401]*401judgments. We also recognize, however, that there is a “gray area” between those judgments “which are undoubtedly final and others that are clearly interlocutory and not appealable.” (Internal quotation marks omitted.) Madigan v. Madigan, supra, 224 Conn. 753, quoting E. J. Hansen Elevator, Inc. v. Stoll, 167 Conn. 623, 627, 356 A.2d 893 (1975). The Curcio rule provides that “[a]n otherwise interlocutory order is appealable in two circumstances: (1) where the order or action terminates a separate and distinct proceeding, or (2) where the order or action so concludes the rights of the parties that further proceedings cannot affect them.” State v. Curcio, supra, 191 Conn. 31.22 Thus, [402]*402there have been occasions “[i]n both criminal and civil cases, [in which] we have determined certain interlocutory orders and rulings of the Superior Court to be final judgments for purposes of appeal.” Id. “We note the existence of a narrow category of cases in which certain temporary orders have been held to be appealable final judgments because they so conclude the rights of a party that further proceedings could not affect them. See, e.g., Goodson v. State, 228 Conn. 106, 114, 635 A.2d 285 (1993) (order of reinstatement to employment pending arbitration); Madigan v. Madigan, [supra, 755] (temporary custody order in dissolution case); Litvaitis v. Litvaitis, 162 Conn. 540, 548, 295 A.2d 519 (1972) (temporary order of child support in dissolution case); Hiss v. Hiss, 135 Conn. 333, 336, 64 A.2d 173 (1949) (pendente lite order of support in equitable action for support).” (Internal quotation marks omitted.) Waterbury Teachers Assn. v. Freedom of Information Commission, 230 Conn. 441, 451, 645 A.2d 978 (1994).
In Madigan v. Madigan, supra, 224 Conn. 753-54, we applied the Curcio standard to determine whether, in the context of a dissolution case, an order of temporary custody was a final judgment for purposes of appeal. In that case, temporary custody orders were entered in favor of the defendant wife during the pendency of a dissolution proceeding in the Superior Court. Id., 750-51. The plaintiff husband appealed from the temporary custody orders on the grounds that they would interfere with his right to spend significant time with his child, and that such an opportunity “cannot be replaced by a subsequent order of custody as part of an ultimate dissolution judgment.” Id., 756. The Appellate Court dismissed his appeal for lack of a final [403]*403judgment. Id., 752. We granted certification to appeal regarding the issue of the finality of the temporary custody order and reversed the Appellate Court’s judgment. Id., 751.
Relying on the second prong of the Curcio test, we concluded in Madigan that “denying] immediate relief to an aggrieved parent [would interfere] with the parent’s custodial right over a significant period [of time] in a manner that [could not] be redressed by a later appeal.” Id., 756. Even “a temporary custody order may have a significant impact on a subsequent permanent custody decision . . . [by] establishing] a foundation for a stable long-term relationship that becomes an important factor in determining what final custodial arrangements are in the best interests of the child.” Id., 756-57; see General Statutes § 46b-56. We concluded that temporary custody orders did “so [conclude] the rights of the parties that further proceedings [could not] affect them”; State v. Curcio, supra, 191 Conn. 31; and, therefore, they were final for purposes of appeal. Following Madigan, we subsequently also have held that a one year- ban on custody and visitation motions imposed by a court to prevent parents involved in a custody dispute from filing further motions is a final judgment for purposes of appeal because it had the potential to interfere seriously with the parent-child relationship. See Taff v. Beltcher, 243 Conn. 380, 386-87, 703 A.2d 759 (1997).
The considerations that led us to our conclusions in Madigan and Taff also apply here to the extent that “courts and state agencies must keep in mind the constitutional limitations imposed [upon them when they undertake] any form of coercive intervention in family affairs . . . [which includes] the right of the family to remain together without the . . . interference of the awesome power of the state.” (Citations omitted; internal quotation marks omitted.) In re Juvenile Appeal [404]*404(83-CD), 189 Conn. 276, 284, 455 A.2d 1313 (1983). Thus, we consider orders of temporary custody in light of these constitutional considerations and reaffirm our conclusion that “an immediate appeal of [a court order of temporary custody] is the only reasonable method of ensuring that the important rights surrounding the parent-child relationship are adequately protected.” (Internal quotation marks omitted.) Taff v. Bettcher, supra, 243 Conn. 387, quoting Madigan v. Madigan, supra, 224 Conn. 757.23 As we pointed out in Madigan, several of our sister states have come to the same conclusion. See Madigan v. Madigan, supra, 757 n.9.24 [405]*405Accordingly, we conclude that, in order to protect the parent’s interest in retaining custody of the child, an order of temporary custody is a final judgment for purposes of appeal. That reasoning means, moreover, that any party with standing to challenge that order by appeal must do so at that time.
In this case, moreover, the best interest of the children, especially their interest in family stability, supports our analysis. When a parent has spent three years neglecting to challenge the temporary removal of his children from his custody, the children’s strong interest in stability counsels firmly against allowing a belated appellate challenge to that temporary order. When the extensions to the temporary custody orders were granted in both 1997 and 1998, the separation of the children from their parents was approved for a period extending to almost three years. During that time, Shamika F. and her siblings all were establishing themselves in the Connecticut foster care system and attempting to achieve a degree of stability with their foster families. As we pointed out in Madigan, spending a significant amount of time in foster care has the potential to “establish a foundation for a stable long-term relationship that becomes an important factor in determining what final custodial arrangements are in the best interest of the [children].” Id., 757. Thus, the second prong of the Cur-do “final judgment” test requires an immediate appeal of those judgments that have an irreversible effect on important familial relationships in order to protect the interests of the parties involved. Neglecting to appeal the removal of the children in a timely fashion also can affect the interests of the children. Therefore, we conclude that temporary custody orders are immediately appealable not only to protect a parent’s interests [406]*406in their children, but also to protect the individual interests of the children.
Accordingly, such appeals are obligatory so that parents may act in the best interest of their children. A grave injustice would be committed against children if a parent were permitted to appeal from a judgment of temporary custody long after they had established a stable relationship with foster parents. We therefore protect the best interest of the children by requiring parents immediately to appeal decisions that, as here, interfere substantially with their family integrity. Those parents must do so in a timely fashion not only to protect themselves, but also to protect the children. Appealing from a temporary custody order after allowing children to languish in foster care for three years does nothing for family integrity. To the contrary, it would interfere seriously with their ability to experience any kind of family stability with either a biological or a foster family, even in situations where parents have demonstrated a total lack of interest in reunifying the family. We, therefore, limit a parent’s right to attack collaterally a temporary custody order in order to avoid further disruption of the lives of neglected children. By doing so, not only are we protecting the parent-child relationship, but we are also protecting the important interests of the children.
“The reason for the rule against collateral attack is well stated in these words: The law aims to invest judicial transactions with the utmost permanency consistent with justice. . . . Public policy requires that a term be put to litigation and that judgments, as solemn records upon which valuable rights rest, should not lightly be disturbed or overthrown. . . . [T]he law has established appropriate proceedings to which a judgment party may always resort when he deems himself wronged by the court’s decision. ... If he omits or neglects to test the soundness of the judgment by these [407]*407or other direct methods available for that puipose, he is in no position to urge its defective or erroneous character when it is pleaded or produced in evidence against him in subsequent proceedings. Unless it ,is entirely invalid and that fact is disclosed by an inspection of the record itself the judgment is invulnerable to indirect assaults upon it.” (Internal quotation marks omitted.) Lampson Lumber Co. v. Hoer, 139 Conn. 294, 297-98, 93 A.2d 143 (1952), quoting 1 A. Freeman, Judgments (5th Ed. 1925) § 305, pp. 602-603. Although public policy in Connecticut favors the protection of the integrity of the family, there is also a strong public policy in favor of protecting the best interest of our children. It is in the best interest of children, especially those growing up in situations of neglect, that the state provide them with a stable family life to the extent that it is able to do so. The commissioner and the department seek to do this through our state foster care system. Allowing a collateral attack three years into that effort would undermine the purpose of the collateral attack rule as well as the goal of our state agencies in protecting the neglected children of Connecticut.
The respondent had three years, and several in-court hearings, during which he could have challenged the temporary custody orders that led to the temporary removal of his children. Even when the trial court denied or dismissed his jurisdictional challenges, the respondent failed to appeal. Although we are not suggesting that any challenge would have succeeded, his failure to act at the time the temporary custody orders were entered does not give him a right at this late date to launch a collateral attack on the neglect and temporary custody proceedings. See In re Jessica S., 51 Conn. App. 667, 671 and n.4, 723 A.2d 356, cert. denied, 251 Conn. 901, 738 A.2d 1090 (1999). “Unless a litigant can show an absence of subject matter jurisdiction that makes the prior judgment of a tribunal entirely [408]*408invalid, he or she must resort to direct proceedings to correct perceived wrongs .... A collateral attack on a judgment is a procedurally impermissible substitute for an appeal.” (Citation omitted; internal quotation marks omitted.) Joe’s Pizza, Inc. v. Aetna Life & Casualty Co., supra, 236 Conn. 876. “[A]t least where the lack of jurisdiction is not entirely obvious, the critical considerations are whether the complaining parly had the opportunity to litigate the question of jurisdiction in the original action, and, if he did have such an opportunity, whether there are strong policy reasons for giving him a second opportunity to do so.” (Internal quotation marks omitted.) Upjohn Co. v. Zoning Board of Appeals, 224 Conn. 96, 104, 616 A.2d 793 (1992).
We see no reason to give the respondent a second opportunity to litigate the issue of temporary custody or Connecticut’s jurisdiction with respect to the proceedings related thereto. He had a fair chance to do so at the time of the neglect and temporary custody proceedings, and he failed to act. Although we note that we previously have held that a collateral attack may be appropriate when the trial court’s lack of jurisdiction was obvious, we conclude in this case that “[t]he lack of jurisdiction, if any, was far from obvious . . . .” Id.
The judgment of the Appellate Court is affirmed.
In this opinion the other justices concurred.