detaches stream