Disable persisting after a failed snapshot
A failed persist (an error or a panic) leaves the task graph and the database out of sync, so later snapshots and the shutdown persist are skipped for the rest of the session.
Co-authored-by: Tobias Koppers <1365881+sokra@users.noreply.github.com>
Co-authored-by: Luke Sandberg <210140+lukesandberg@users.noreply.github.com>