cleaning. Program still don't exit once the user closes the figure .... tiring