Add delay when reconnecting due to socket error.