I thought officers could resign their commission at any time?
Anytime AFTER they have either put in the years they signed up for in return for the training they get - in this case - a Psychiatrist
OR
get out and pay back the cost of the training, plus penalty...which, in his case, would be WAY up there