Packages make Pulsar do amazing things.
close-after-last-tab-with-git
Close the window after the last tab has been closed with a git folder.