Workflow that triggers another workflow does not come to an end



I am triggering one workflow from main workflow using container step. The child workflow comes to an end but the main workflow is still running. What is the procedure to complete the container step and move to the next step?