Hi Tom,
I would display a message and a link to purchase the app, but not automatically close it.
See How to create a trial version of your app for more options for what to do when the trial ends.
--Rob