Prepare exception infrastructure