function of terminating workflow