Don't leak a handle to the dialog.