Replace `exit` child event with `close`.

Closes #149.