* tasks may submit while we are running cleanup code.
*/
private synchronized void onExecutorEmpty() {
WebDriverProvider provider = AuraUtil.get(WebDriverProvider.class);
if (provider != null) {
provider.release();
}
}
/**
* @return true if the executor is currently active (not empty).