Changed to close existing ConnectionPool when overwriting if exists