That's a life lesson, you can get a super cheap pc laptop for $350 to fill the void, or make a cheaper functional replacement of the iMac using a Mac mini and generic monitor.
Look at this as a life lesson, next time try out friend's gadgets or do extended test drives in the stores.
Yeah, and it probably won't be the last time either. But we shrug it off and vow to be less impulsive in the future, and as you get older you will have fewer and fewer of these situations. They never totally go away, but they do get to where they are less traumatic.
There is always an added cost to being one of the first to use any technology.
Some lessons can only be taught at the school of hard knocks.