Add timeout to tpds worker