Yes, you have read it right. The application will be removed after it fails for a particular number of times (by default this is 10). To prevent the application from being removed, you can to set this to -1. Try this:
val sc = new SparkContext(new SparkConf())
./bin/spark-submit <all your existing options> --spark.deploy.maxExecutorRetries=-1