Impove Spark on Yarn Error handling