Cleanup API for persist result