Fix spawn_async callback
From what we observed on Nixpkgs, the arrow function inside
spawn_async
seems to be out of scope before it's called. This makes the
tab title to be "tab 1" on launch and confirm closing dialog not
working. Changing it back to a named function fixes this.