handled exceptions in background task of connection pool size maintenance.