Raise his affection by making the correct choices (these can be found in the guide linked above). If you have Tyler as Emma's boyfriend then you'll need to either use the affectionate trait or have Social above 150 by his getaway as well.
Raising Trust stops you from dying. Raising Management will only change the ending if affection is high enough.
If you did meet all the requirements then maybe you made the wrong choice at the end - don't choose to leave him.