Back to answer the OP’s question (this thread got hijacked). Yes, I like the bathroom idea, personally. I simply can see this happening to me.Or maybe he had something else on his mind that was a dire situation that needed a few minutes of his time.
The point is, don’t take it personally. There was no reason to assume the priest was mad at you, or purposely denied you confession. That would be outrageous.
One way to look at such an annoyance, even when you were being righteous and correct in wanting to confess your sins, is that this was obviously the will of God for you at the moment. St. Therese of Lisieux and other saints of the “little way” would see this as something of a grace-filled moment, a small test coming to you from God, to try your patience, fidelity, joy, perseverance. The greatest suffering for many of us in life is often these seemingly “small” things, but they can be joyfully offered to God and gain us more merit than if things had gone smoothly for you, as you had planned.