Fixed possible double deletion of objects, initial unloading and post-