Added callback function to animation for destroying the object when it's done animating.