KyloPersistentProvenanceRepository sometimes doesnt save the backup file on shutdown
Description
On shutdown the provenance repo needs to write any active flow metadata in NiFi to the backup.gz file in order to reattach the data with running flows when NiFi starts.