Stopping failure due to attempt to show dialogs after Activity has been hidden.