Test finalizers run during explicit exit.

Closes #113.