add threadPool shutdown hook when kill task

it fixs SPARK-1107, is it right？