Fix issue with PassDialog not cancelling.