Handle the exception from Registry::Flush()