   timestamp = process.hrtime().join "-"
   suffix = if request.isContentEditable then "html" else "txt"
   filename = "#{directory}/#{username}-text-aid-too-#{timestamp}.#{suffix}"
+
   console.log "edit:", filename
+  onExit.push -> console.log "  done:", filename
 
   fs.writeFile filename, request.text, (error) ->
     return exit() if error

    monitor = watchr.watch
      path: filename
      listener: sendText
      catchupDelay: 400
    onExit.push -> monitor.close()

    child = child_process.exec getEditCommand filename

    sendText = (continuation = null) ->
      fs.readFile filename, "utf8", (error, data) ->
        return exit() if error
        console.log "  send:", filename
        request.text = data
        ws.send JSON.stringify request
        continuation?()
