PAHMA-1010: Set default max connections per host to 20, and warn when limit is reached.
PAHMA-1010: Minor refactoring, and delete closed connections when the max has been reached.