working on stop delaunay after mainwindow closed