it's probably the designed wrapup time for agents.fifo_consumer_wrapup_time var controls this wait time in milliseconds and the default is 5 sec.