>Sure, but I can't imagine you'd plan for being fired for being locked out of your work area
The reason of being fired is beside the point.
Employer should be able to fire anyone for any reason.
Likewise employee should be able to quit for any reason.