; and (2) that— (A) originated before the date on which a shutdown begins; (B) is in effect on the date on which a shutdown begins; and (C) is secured by a mortgage, trust deed, or other security in the nature of a mortgage. (b) Stay of proceedings and adjustment of obligation If a covered action is filed in a court during a covered period, the court may, after a hearing and upon the motion of the court, and shall, upon application by the Federal worker if the ability of the Federal worker to comply with the covered obligation is materially affected by the shutdown— (1) stay the proceedings for a period of time as justice and equity require; or (2) adjust the obligation to preserve the interests of all parties. (c) Sale or foreclosure A sale, foreclosure, or seizure of property for a breach of an obligation described in subsection (a) by a Federal worker shall not be valid if made during a covered period except upon the order of a court that is granted before that sale, foreclosure, or seizure, as applicable, with a return made and approved by the court. (d) Misdemeanor A person that knowingly makes or causes to be made a sale, foreclosure, or seizure of property that is prohibited under subsection (c), or that knowingly attempts to make or cause to be made a sale, foreclosure, or seizure of property that is prohibited under that subsection, shall be fined as provided in title 18, United States Code, or imprisoned for not more than 1 year, or both. 8. Liens (a) Liens (1) Definition In this subsection, the term lien includes— (A) a lien— (i) for storage, repair, or cleaning of the property or effects of a Federal worker; and (ii) on the property or effects described in clause (i) for any reason other than a reason described in that clause