Close the door on your way out

Fixes #265