add shutdown timer and task counter
add shutdown timer and task counter