Removing child_pids and handling sigterm for serviceprocesses