support for retry attempts (max num and wait time), auto-commit on release, and pool shutdown