Maybe he's reciting the Muslim version of the Kaddish....and did I miss something, or did I not hear a single Aloha Ackbar from anyone?
Maybe he got hit by a dose of Reality at the end.
Many people snap out of their hypnotic states and/or Con Games when faced with Death.