You must log in or register to comment.
Go to about:config - find option browser.tabs.closeWindowWithLastTab - set to false. If you’re only using the close tab button, it will never close out of the program. If you’re closing a lot of windows using the window control though that won’t really help.
This did actually help a lot, thanks!