Is it possible to add just line number, and ignore your centralized error handling routine?
Use the standalone FailSafe program.
Choose File|New. Choose AutoProcessor and No for the dialog that asks if you want to use the Wizard.
Open your project.
Choose the options tab and change the action to renumber and then run.
This should add line numbers only. The line numbers can be removed using the same process with the action as remove.