Awe...you helped that lady out when she needed someone. You did the best you could. I feel bad for the dog. Sounds like he wasn't living in the best situation although I have no idea if he was loved or not. That's one of the most important things. Don't be too hard on yourself.
Rest in Peace now dear Pug doggie.