detect when there is no active lua-term