How To Close Firefox

How To Close Firefox Running In The Background
Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.
I keep getting this error message when I try to shut down Firefox. It does not appear to be running on my desktop but my guess is that it is being used by another program in the background (to send an Error report, perhaps). How can I force Firefox to completely close?
Hi, try holding down the Shift key when you start Firefox to start in Safe Mode. After the download finishes, close all Firefox windows (or open the Firefox menu. Enable or Disable Automatic Updates in Firefox Posted on March 18, 2018 by Mitch Bartlett 35 Comments I don’t like Firefox constantly updating the version or the Add-ons all by itself at startup without my knowledge.
TRiG2 Answers

To force completely close Firefox use:
pkill firefox
from terminal.
AchuAchuIn a terminal execute:
$ killall firefox
Firefox Is Already Running Linux
or, in some old versions,
$ killall mozilla (... and press the tab key to complete)

That will kill firefox. If the problem appears again, do the same, but if the problem happens almost always then you must have a deeper problem.
Not the answer you're looking for? Browse other questions tagged 12.10firefox or ask your own question.
I dont want to kill browser process, I just want to shut down the browser from command.
3 Answers
For closing the browser gracefully, wmctrl should do the trick:
you may need to install it first with
see the wmctrl man page for more info
If you wish to 'entirely' close Firefox 'gracefully', try using xdotool. By gracefully, i mean closing the program, not killing it. By entirely, i mean 'quiting' Firefox, closing all windows, all at once. wmctrl will gracefully close a single Firefox window, but will not close all windows.
Create the following script:
That should do it.
You cannot close a tab, but you can close the browser using one of these:
terdonterdon