fix connErr panic while NewClient fail