store: Handle exception cases in cancellation.