fixing download artifacts on terminate