Centralize error handling for buggy register handling