I have no problems with how the end was handled. Someone higher up had to come up with the plan. This was a deranged and dangerous man that was killing officers. They had no choice, he was not coming out willingly.
As far as the cussing, they are men in field, basically at war with one of their own, and had just found out he had killed another of their own. Cussing and anger is expected. They didn't go in and choke him or beat him, they did as the plans were told to them. I don't see where they had another choice. They did try to slowly dismantle the place first to get him out, since he would not surrender. He wasn't going to do that.
If curse words in the line of fire bother some, I suggest never following another rapid moving gun firing event, and please don't watch any war footage, don't take a tour of a police station or an emergency room, or a kitchen restaurant. Please don't even think a whole lot doesn't go on in the White House. Even in my office, cursing is the only way the defense lawyers make it through the day. Otherwise they might blow and end up needing their own attorney for whatever kind of actions they may take. It is a normal steam valve when things are strained and high energy.