Then make your Close button a Rejector (or simply Breaker)!
There are three modal loop breakers:
- Breaker simply exits it
- Acceptor accepts widgets first (accepting makes the check for Null)
- Rejector rejects all widgets (this can be different from simple Break sometimes, e.g. open database data are canceled etc..)