If someone helps us, we thank him. In another case when someone makes an effort and does not succeed, we fail to respond to that fellow. Here we should be rather more thankful to him because besides his efforts, he has suffered through the pain of failure also.