it is possible that the doorway is outside the trigger zone for the door, and it will only close when you pass through this (when you move away). You could try makeing the crusher in the doorplace (so it blocks it) then add the spawnkey start open, that way when people go through the door it will close