Your agents need to make sure there no calls still in queue before logging out of the hunt group.

If this is a problem, adjust the STAR so the night greeting kicks in a few minutes earlier.