To match the previous behavior, you still need to do `return` here. Otherwise it will keep going to the rest of the method, which would break. Please add attest for this actually if you can (just create a text file, call Spark.textFile on it, then delete the file on the filesystem and try to run a job).