I see your reason that the dragon stayed in te lair. He was a gatekeeper for the fortress, so he couldn´t just leave and the controlling demon thought of him as expendable resources.
I think your problem was that the dragon accidentally attacked the parties strong point, their reflex saves and...