libfreerdp-core: add client hook for OnErrorInfo