implement graceful cancellation of long-running CLI operation using lock files