oop, let's make sure we actually close things cleanly.