Headless Client shutdown

in the end, do: application.exit()