Did Sans Survive The Fight In Genocide Run?
Solution 1:
He dissolves off-screen, which can be heared. I'm pretty sure it's implied that determination still holds him together for a few seconds and that he doesn't want you (the evil person in that route) to have the satisfaction of seeing him dissolve.
I'm not sure what you mean with Papyrus. The dialogue depends a bit on how you played before. But of course he can mention Papyrus, he doesn't just suddenly forget about him.