if child exits successfuly, emit a complete event