Add ensureChildDeath to make sure child processes get killed properly