Remove script thread from objectholder once it is destroyed