Closes the connection pool and associated resources.
Calling read, write and withAllConnections after calling close should result in an exception.