Persist state on model deinit