     catch e
       console.warn e
     finally
-      if cleanup
-        fs.unlink(file)
+      fs.unlink(file)
+      if callback?
+        callback()
 
 sendHeartbeat = (file, lineno, isWrite) ->
   time = Date.now()

    window.VERSION = atom.packages.getLoadedPackage('wakatime').metadata.version

    if not isCLIInstalled()
      installCLI()
    else
      isCLILatest((latest) ->
        if not latest
          installCLI()
      )
    isPythonInstalled((installed) ->
      if not installed

    )
  )

unzip = (file, outputDir, callback) ->
  if fs.existsSync(file)
    zip = new AdmZip(file)
    try
