Cleanup FT_DIRBEGIN/END.