(gui) Properly delete connections after refinement update