[WIP][SPARK-2167]spark-submit should return exit code based on failure/success.