fix possible connection pool leaks.