Well, the end wasn't that good at all in my opinion, it was ok.
After defeating megasheron goku dies. Then, suddenly the good dragon balls activate and shenron comes out. Once out, shenron revives goku and tells him that the dragon balls will not be used anymore. So, shenron decides to take goku with him to protect the dragon balls. 5 minutes before ending, goku goes to his friend's houses to say goodbye.