Update index.js

Added endConnection() which clears the internal keepalive setInterval and ends the connection or pool.

Can be called to cleanly shut down the manager as part of an express shutdown.