use a context-manager

just to be sure...