end stream in command callback