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.