Spark Integration: SparkContext is closed by ProgramRunTimeService
Move Spark Program stop call (which in turn close Spark Context) to the place where it was instantiated. Also have small refactoring to simplify the code in the SparkProgramWrapper.
Merge pull request #586 from caskdata/feature/fix-spark-close

Spark Integration: SparkContext is closed by ProgramRunTimeService
Spark Examples: Fix sparkkmeans procedure for invalid index
Merge pull request #588 from caskdata/feature/sparkkmeans-fix

Spark Examples: Fix sparkkmeans procedure for invalid index
CDAP-557 Refactor AbstractAppFabricHandler