Improved management of TaskExecutor availability method.