I don't understand; I didn't have to kill him. This article points out that getting the "good" ending with him hinges on saying the right thing when you first meet him. You need to avoid any confrontational conversation options with him up to that point, avoiding insulting his ego or being rude to him in any way.