Fixed app cannot close after cancel confirmation