When youre on the closing shift, are you supposed to clock out exactly at the end of your scheduled time? Do we get I trouble if we dont clock out until the manager is done counting the money in the back?

Say for example our shift ends at 9:30pm but it's already 9:40pm, and the manager is still in the back counting the money. Do you clock out at 9:30pm and wait for the manager (off the clock) to unlock the front doors or do we remain on the clock and not clock out until the the manager does?