The customers disappear after theres either:
Nothing in stock,
The store has nothing they want.
The customers are supposed to walk toward the door and then leave, but looks like it was a bit bugged. Also yeah the door to the employee room is a bit whacky to walk through.