Considering that you are talking about gaming application, you make use of external resources or some game engine. Before exit from application, make sure you free/dispose/clean-up resources you used in your app.
For example to keep track of open handles may use Handle