I see the same issue here. Batch or interactive.
The SQLRPGLE programs have EXEC SQL CLOSE at the end of the need for the SQL run. I also added EXEC SQL RELEASE ALL
The file stay open until the job ends. For batch jobs, no issue. But for some of the interactives, that's a problem when the user is sitting on the menu with nothing running. They think they are out of the job, but the file is still open.