Clean up handling of children.