Made task timeout configurable