add error handling to backbone model.