Click to see Spoiler:
I read that he accidentally shoots himself in the foot during basic training thereby getting a discharge. Presumably before the military haircut is done.