Closing confirm dialog (ecall 50) by clicking in the X at the upper right corner returns in a0 the value 1, the same value returned by clicking the NO button.
I was expecting that when closing the Dialog it returns 2, the same value as clicking the CANCEL button.