Bug fix: SPARK-789

https://spark-project.atlassian.net/browse/SPARK-789
Remove active job from idToActiveJob when job finished or aborted
Merge pull request #681 from BlackNiuza/memory_leak

Remove active job from idToActiveJob when job finished or aborted
Merge pull request #674 from liancheng/master

Bug fix: SPARK-789