Spark Integration: Close spark context in unit test

So why rely on the app to close the context? Isn't it should be part of the cdap job?