terminal: wire up child-exited.