Added an exit handler that closes remaining open pytables files (using atexit.register). This solves the problem with files not being closed at exit, which made pytables write a message to stderr. NB. how to close remaining file handlers has changed in version 3.1.0 of pytables, so pytables version >= 3.1.0 is now required