For #73
Closes a few connections created for the as times database. There are other places where the code appears to not close resources, but as @ltenorio pointed that the current issue was with this specific database, I refrained from changing the rest of the code to minimize the risks for causing other unexpected bugs.