Use deffered 'fail' callback to handle error