 
     @IBOutlet var item: NSStatusItem!
     
-    var app: App!
-    var timer: NSTimer!
+    var app: App?
+    var timer: NSTimer?
     
     func act(e: NSEvent!) {
-        app.act(makeAction(e))
+        if app == nil {
+            return
+        }
+        app!.act(makeAction(e))
         if timer == nil {
             timer = NSTimer.scheduledTimerWithTimeInterval(
                 1.0, target: self, selector: "tick", userInfo: nil, repeats: true)

    return NSDate().timeIntervalSince1970
}

class File {
    func put(data: String) -> Bool {
        return true
    }
}

class SystemFile: File {
    
    let path: String
    let mode: String
    
    init(path: String, mode: String) {
        self.path = path
        self.mode = mode
    }
    
    override func put(data: String) -> Bool {
        let f = fopen(path, mode)
        fputs(data, f)
        fclose(f)
        return true
    }
}

            lastActed = now
            updated = true
        }
        map(meters) { $0.add(i, now: now) }
    }
    
    func fade(now: NSTimeInterval, go: Bool) {
