Updated the global onError handler to call the parent handler.

Change-Id: Id8c8adf43a7bb39608bd53e0cbe92d4efad4358c