(a) Except for an order under section 518E.305, except as otherwise provided in paragraph (b), and consistent with the Servicemembers Civil Relief Act, United States Code, title 50, appendix sections 521 and 522, on motion of a deploying or other parent or any nonparent to whom caretaking authority, decision-making authority, or limited contact has been granted, the court may modify or terminate the grant if the modification or termination is consistent with sections 518E.301 to 518E.311 and it is in the best interest of the child. A modification terminates pursuant to sections 518E.401 to 518E.404 after the deploying parent returns from deployment, unless the grant has been terminated before that time by court order.

(b) On motion of a deploying parent, the court shall terminate a grant of limited contact.