Improvements in ErrorHandler

Changed listen() to register();
When registering all, disable native error reporting;
Some refactoring;