I am having some of the following exceptions:
java.lang.IllegalArgumentException: View not attached to window manager at android.view.WindowManagerImpl.findV
Another option is not to start the async task until the dialog is attached to the window by overriding onAttachedToWindow() on the dialog, that way it is always dismissible.