abstract stream-stop

move out to general stream support