It's only called when libgit2 itself shuts down, so I'm not sure how to test it.