"Closing Costs" are one of the "fine line" items in a real estate contract. I have several friends who are real estate brokers and there does not to seem be any "rhyme or reason" to the rationale on these costs.
My friends have stated that there ARE SO MANY mortgage companies out there now you can afford to pick and choose.
My wife and I get 8/10 offers a week to refinance our home. If I took every offer up, and got it, I've received in the last year in a half, I could buy Rhode Island.
We actually are in the process of refinancing our home, and by shopping around we were able to get our closing costs down to around eleven hundred dollars. Some were as high as nine thousand. This is one of the original "buyer beware" issues. Good luck.