fixed issues with ConnectionPool

- getConnect() now blocks if there is none at the moment
- simplified some code
logging adjustments