Clear stale tasks