Decoupled client-side error-logging