Fix bug in error registry. Make error registration in client non blocking. Should not negatively affect the client's performance.