Just remove persistDocumentMetadataMessageInQueue flag if document metadata was successfully persisted.