Actually when the program shuts down we see a very old Riker wearing a "All Good Things" outfit standing on a empty holodeck. As usual Riker has being using the holodeck to spy on the past for how to behave and he wanted to check out that one time Picard did it as well. He walks out of the holodeck and then that also fades into a courtroom slash Holodeck where we see a even older Riker in a prision jumpsuit. Seems all his spying on all the other crews has finally caught up with him. Not content to let him be the peeping tom of the universe he was finally arrested. The jurors were just seeing evidence of his previous spying. Judge bangs a gavel and says "Guilty" and two Starfleet officers hull off a very old RIker to his cell.
Jason
Which then cuts to a scene of an old Trip using the Enterprise-era holodeck technology from that ship he got pregnant on to watch some scifi, establishing that only Enterprise is canon and the rest is a simulation of a possible future