When using the built-in connection pool, connections were not rolled back and autocommit was not enabled after closing.