Add reconnectAfterDelay method.