Handle the wrapped invalidation errors. Fixes #36