Remove warnings due to cancellation errors.