Shutdown cleanly on quit process