fix catch connection error exception