Introducint internal function destroyAllConnections

As the name suggests, it destroys all existing connections in the
connection pool immediately.