Disappointed, but no reason to get mad. It's a free country. Just tell you boss in a professional way. I have done such thing several times. I usally tell my boss in person, unless I really don't want to talk to him/her, then a few minutes later give him/her my resignation letter.