Prepare to cancel refresh command