closeGraphIfOpen

Close the application graph if open otherwise do nothing.