Will now remove the dialog even if it isn't added to the body.