     }
     
     func stopNotifier() {
+        print("--- stop notifier")
         reachability?.stopNotifier()
         NSNotificationCenter.defaultCenter().removeObserver(self, name: ReachabilityChangedNotification, object: nil)
         reachability = nil

    }
    
    func startNotifier() {
        do {
            try reachability?.startNotifier()
        } catch {

    func setupReachability(useHostName useHostName: Bool, useClosures: Bool) {
        let hostName = "google.com"
        hostNameLabel.text = useHostName ? hostName : "No host name"
        
        print("--- set up with host name: \(hostNameLabel.text!)")

        do {
            let reachability = try useHostName ? Reachability(hostname: hostName) : Reachability.reachabilityForInternetConnection()
            self.reachability = reachability
