Updated ErrorHandler to start using datacleaner.onError JS hook for error handling. Fallback mechanism is also coded.