a door is closed and latches