Only persist the managed state after a successful save of the stateful document