Well that is weird, never heard of an emergency stop being wired to the cabinet door. But the answers stays the same. Check you wiring and your wiring diagram.
If there is no emergency stop wired to the door then you have a different problem, then you have to check the wiring from the relay board that Skyefire described to the PC