Reproduction
- open Terminal.app in macOS
- close the terminal window you just opened
- there's this popup:

Of course, I prefer running exit instead of clicking the close button through the GUI. However, this is an inconvenience because when I shutdown my computer while leaving a terminal window open, I get the popup which disturbs the shutdown. Further, my quit alias also doesn't work because of the popup.
Is there a way to label sqlite3 as a background process or something like that so the terminal can end the sqlite3 process on its own?