some cleanup

no need to ensure if we're re-registering the shutdown function
more than once.