close connections if Connect meet error