In addition to terminating the transaction after using the DB, resources must be released so that the session can be reused from the connection pool.