Happy Ending. As he get's a second chance in the end.
You’re not wrong but in my point of view it’s still an happy or good (more adequate) end as now that he learnt about his errors he will(I believe and I hope so) cherish his love ones till the end , stay strong and not give up even if life is hard . But everyone can interpret it differently :)