Corrected issues with stats and inserted error handling for swallowed exception
Corrected issue with removeIdleConnections
Corrected flush mode, pool size counter and lazy association check