Take care of premature child termination, see #2895