Close on exit. I'm not entirely happy with the distribution of this