Add exception handling around preprocessors.