Added ECCanvas virtual destructor. Added atexit() function.