Was Mike Smith's decision to punt the right one?

I think any coach would punt with 2:44 left and your defense playing fairly well. You go for it there and fail, you're pretty much ****ed.