I tried removing this, and the CustomDialog refused to hide itself...