ENH/BUG: add context manager for expressions to auto-close resources

the interactive example for pytables was not closing the .h5 file on exit. This shouldn't affect anything as its an explicit user interaction.
It would be good to test the openness and closedness of the resource inside and outside of the context manager.  We haven't actually tested that it closes things.