If the sub is reached from a GOSUB then I guess it would depend on the rest of your program. If the program is not expecting data from the sub or data from an interrupt then it would be ok.
You could also send the code to an endless loop. That way if there is any unfinished task they could be completed.
STOP also works.
Could get fancy and have MCLR pulled low...
Bookmarks