Merge "Gracefully tear down networks when SIM is disabled" into main