Added FormIsClosing condition before drawing graphs
Code refactoring - Done with Resharper Default Settings