; and (7) failure to file a repayment plan, if required, by the deadline prescribed under section 1021(e). (c) Dismissal (1) Dismissal for manifestly improper use of the bankruptcy system (A) In general Notwithstanding subsection (b), after notice and a hearing, the court, on its own motion or on a motion by the United States trustee or the trustee, may dismiss a case on grounds that the granting of relief would be a manifestly improper use of the bankruptcy system. (B) Manifestly improper use of the bankruptcy system For the purpose of subparagraph (A), the failure of a debtor to pay an amount that is greater than the minimum payment obligation under a repayment plan alone does not constitute a manifestly improper use of the bankruptcy system. (2) Dismissal at request of debtor (A) In general At the request of the debtor, at any time, the court shall dismiss a case under this chapter if the case has not been converted under subsection (a). (B) Waiver unenforceable A waiver of the right to dismiss a case under this section is unenforceable. 1006. Treatment of certain contracts and leases Notwithstanding a provision in any contract or unexpired lease, or in applicable law, with respect to any contract or unexpired lease of the debtor, the contract or lease and any right or obligation under the contract or lease may not be terminated or modified, and neither the debtor nor any individual liable on such contract or unexpired lease with the debtor may be declared in default under the contract or lease at any time during or after the case, solely because of a provision in the contract or lease that is conditioned on— (1) the insolvency or financial condition of the debtor at any time before the closing of the case; (2) the commencement of a case under this title; (3) the appointment of, or taking possession by— (A) a trustee in a case under this title; or (B) a custodian before the commencement of a case under this title