added a public close function to hotspot

I feel like this solution is inellegant.