And try to set DISABLE_EXIT setting to true, then create your custom spark.jar and replace it for your users. There won’t be Exit option in Spark. But they would still be able to kill the process from the Task manager. There are no option to start Spark automatically after exiting it. It would need some sort of process watcher application.