Fixed possible memory leak on shutdown, when replotting before the end of the animation.
Improved initialization speed.