Run finalizers in reverse order of registration.

Closes #216.
Release 0.0.39.

Closes #217.