I think it could possibly be handled better than that. I'd suggest that if the OP decides they would like to stay at the current employer, but only if the current employer offers what the employee feels they are worth (or if the employee wants more than they are currently getting), they could very politely say
"Listen, I really like working here, I like that you guys do x,y,z, that I have the option to learn from/about/with.. whatever, but I've just had a great offer from Acme company, and I was going to take it, but wanted to talk to you guys about it before I accept."
That way the company understands why the person is leaving, that they haven't agreed to leave yet, it is in the employers hands to keep the employee if they want to.
We have a fairly small industry (and even if we didn't) you're going to be running into the same people again and again though your career. Neither side should be hurt in this. It's a business proposition. Friendships don't have to end, cooperation doesn't even have to end. MAKE SURE YOU ARE NOT LEAVING YOUR CURRENT EMPLOYER IN THE LURCH. Give them time for you to clean-up what you're working on and get it in a good state, etc. etc.
As long as you're professional (and the OP's original posts suggests he is professional and courteous), the current employer shouldn't take it as anything but.