You can never count on a program exiting gracefully. It could lose network access, power, or have a hardware issue that causes abnormal program termination, resulting in an orphaned license.
Therefore, if you do this, you need to be sure to have a way to timeout your licenses.
And remember: I said, "If." I have to manage an application that does exactly this, and I can tell you that it's a pain on the user side. "Abnormal termination" happens a lot more than you might think, and my users are always needing to wait on license timeouts. It's not a good user experience. Think about all the uproar over the some of the recent video games that have tried to come out with "always on" DRM... that is very similar to what you are proposing, and in most cases the game publishers have eventually backed off of the requirement.