Add missing import for exceptions

This is not part of the validation and was broken during passes
splitting.
WIP