forgot to call destroy before invoking the run dialog