I am creating an application where files are kept open so they can be easily read.
What I am trying to figure out is how to execute a block of code after the application ends even if an error is raised?
It's currently causing resource leaks so I need to handle the loose files.