a machine works while a door is closed