bugfix in import energies: invalid gtk_widget_destroy(dialog)