[SPARK-4451]force to kill process after 5 seconds

When we stop history server or thrift server, sometimes they were not totally stopped. So I think we'd better wait some seconds and kill it by force after that waiting.
I do this referring to Hadoop.

https://issues.apache.org/jira/browse/SPARK-4451