when command mode it should join the thread after invoke