Fix issue #2: Will now terminate child by handler.