Did you see this? Job lifecycle | LiveKit Documentation
You can adjust this value in the ServerOptions (code here: agents/livekit-agents/livekit/agents/worker.py at main · livekit/agents · GitHub)
e.g. server = AgentServer(shutdown_process_timeout=10)