Unregister Mime::Type in teardown.

This fixes a potential state leak.

\cc @senny