You get the good ending by not looking back when you start getting chased by the guy, basically just don't look back at all.