fix node level persistence bugs, fix process instance caches about to be
saved and to be deleted