added gui shutdown code & changed extension for gui only