     
     // Stop startup timer when going into the background, to avoid
     // blacklisting a version just because the web view has been suspended
-    startupTimer.stop()
+    startupTimer?.stop()
   }
 
   // MARK: - Public plugin commands

      return
    }
    
    startupTimer = METTimer(queue: dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)) {
      NSLog("Startup timed out")
      self.revertToLastKnownGoodVersion()
    }
  }


  public func startupDidComplete(command: CDVInvokedUrlCommand) {
    NSLog("startupDidComplete")
    
    startupTimer?.stop()
    
    lastKnownGoodVersion = currentAssetBundle.version

