 
     func webView(webView: TLWebView, didCompleteRequestForVisitWithIdentifier identifier: String) {
         if identifier == self.identifier {
-            afterNavigationCompletion {
+            afterNavigationCompletion { [unowned self] in
                 self.delegate?.visitWillLoadResponse(self)
                 self.webView.loadResponseForVisitWithIdentifier(identifier)
             }


    private func finishRequest() {
        if requestStarted && !requestFinished {
            self.requestFinished = true
            delegate?.visitRequestDidFinish(self)
        }
    }

        delegate?.visitDidStart(self)
        webView.issueRequestForVisitWithIdentifier(identifier)

        afterNavigationCompletion { [unowned self] in
            self.webView.changeHistoryForVisitWithIdentifier(identifier)
            self.webView.loadCachedSnapshotForVisitWithIdentifier(identifier)
        }
