Where any petitioner in an Indian child custody proceeding before a state court has improperly removed the child from custody of the parent or Indian custodian or has improperly retained custody after a visit or other temporary relinquishment of custody, the court shall decline jurisdiction over such petition and shall forthwith return the child to the parent or Indian custodian unless returning the child to the parent or custodian would subject the child to a substantial and immediate danger or threat of such danger.
Conn. Gen. Stat. § 46b-116x