Navigate to Settings → Conversations → After Conversation Work
Configure the time within which you would like the agent to wrap-up the conversation. If the agent is unable to wrap up the conversation, then it will get auto-closed.
For example, if the After Conversation Work Timeout is set as 3 minutes, then the agent gets 3 minutes to wrap-up the conversation and the timer will start as soon as the conversation is completed.