add close method for explicitly freeing a tagFile