Need an os.close() somewhere—it can go here, really.