"And you shall not go out the door of the Tent of Meeting"Leviticus 10:7.

It is forbidden for a priest to leave the Temple while he is in the middle of performing his service.

A high priest may not leave the Temple even if he is an onen, i.e., he is informed that one of his next of kin has passed away.