ability to cancel write to local file