Working on connection management stuff.

Got rid of pool.close() and introduced pool.closeConnectionsNow and pool.closeConnectionsWhenNotInUse