Fixed failed attempt to reconnect at ECONNREFUSED and ECONNRESET