Handling register errors (closes #1028)