Resolved database connection cleanup issue.