stream4 improved error handling (SSL Error in stream2)