fix data race accessing connErr