Stop all processes in staging script on timeout

* Ensures that child processes created by system()
calls also get killed in case of timeout error.

Signed-off-by: Kai Zhang <kaizhang@cn.ibm.com>