Stuff leaves the holodeck often though*, which makes that ending a bit nonsensical.
*Heck, the very first time someone exits the holodeck on screen, replicated matter leaves with them.
Edited to add: That's not to say I wouldn't like to see the scene though of course.