Kill child process when shutdown.

As per subject. Fix https://its.cern.ch/jira/browse/CAF-39.