Don't use sets for shutdown hooks, fixes #27