BUG: Fix a vtkCommand leak due to dialog window not deleted