renaming shutdown makes it happy to not shutdown twice and seg fault