[ScriptRunner] add option to close the console screen on completion.