Added events to control processing after errors

Hi,

I added some events to control the way errors can be handled. With the changes it is possible to trap all errors on one line instead of only the first one. I also added an event to trap all errors in one line. This is my first attempts to contribute to any project, so please forgive me if it doesn't meet the standards.

Cheers,
Arie