Add an option to close connection pool