net/stream.py: fix for when the first connect() fails