logger.close() would be nice here.