Added method for handling error exceptions
Added try-catch for handling internal errors
Updates on domain update method