Added missing method setMaxReconnectOnClose.