Rated 3 out of 5 stars

Because it didn't work with all closing options, I found this alternative that does work: https://addons.mozilla.org/nl/firefox/addon/ACMMize/.

This user has a previous review of this add-on.