stop streaming on exception