Handle errors when invalidating transactions