Small improvement to the way the exit is handled

As [suggested](https://github.com/xogeny/impact/commit/cdc5e3b57a4aad9d6dc21344f9c61b1800a815d2#commitcomment-6457061)
by @FND.