better stream error handling