shouldn't this have a close() as well (also in finally)