Handle errors on stream.connect()

In some instances this connect() call can return None. This isn't caught and handled.