I\'m doing some automation with Firefox and although I can open Firefox window from shell, I\'m not able to terminate it properly. If I kill Firefox process with
kill
For Firefox in OSX:
killall 'firefox'