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.
yep will do. have to think about how to do that. This came up because the tests suite had a close of a a PyTables file when the suite ended (as PyTables does this).