When the Princess died, he would be dead to persecute so everyone understands that he lost his head, and finally, the devil will have to marshal the devil happy.
When the princess died. He was supposed to die. To make everyone understand that he defeated the devil and in the end he will be with the Dark Lord happily.