To stop Firefox 3.5 from closing when you close the last tab like it used to be in previous release do this:
Type about:config in the address bar and look for the browser.tabs.closeWindowWithLastTab entry. Double-click it and change its value from true to false.
Now Firefox 3.5 shouldn’t close when you close the last tab but remain open. h/t Lifehacker.