Stop Stream on error or close