fixed error handling in attach stream so that ting doesnt crash if theres an InvalidRequest error (hopefully)