BUG/ENH: Fixed pytables __del__ crash, added context methods