When you render a scene from within Maya, make sure you do not specify a MEL command or script that includes delete operations or you may accidently delete objects in your scene.
To run a MEL command or script before or after rendering