At one point I got stuck in one of the rooms even though enemies had stopped spawning and I killed all of them. I was able to see one other skeleton who had spawned in the next room but I couldn't shoot them through the portcullis. Maybe it was detecting that skeleton thinking it was one from my room and holding the doors closed?