Hasan is a commissioned officer. They serve at the pleasure of the CIC—they don’t have to reenlist like the enlisted do.
He had been trying to leave the military for years we are told but had to stay. Why could he not leave?