Test orderly exit.

See #100.