stop when stream stops