[SPARK-3732] Yarn Client: Add option to NOT System.exit() at end of main()"

Code fix and documentation change for proposed fix for SPARK-3732