Register error handeling