creating a script no longer creates an empty log file...
modified code so that the application exits after a script is run. When
we fix the bug that prevents us running one script after another we can
have it stay open!