Sorry to hear about your situation this is never any fun to go through. I am glad you got your earnest money back, quite often people don't get this back or end up being sued by the seller. It is very common to terminate a contract because of the inspection. If you are working with a difficult seller who will not agree to the repairs this happens. Or if you find out there is a major defect with the house which would cost $$$$'s to repair. Most sellers agree to reasonable repairs and things go smoothly. I wish you the best of luck with your next transaction, you are just unfortunate to have been in this situation. As a general rule if the home is in great condition to start off with, and looks well maintained this is a good indication that the seller looked after his/her home, which hopefully means fewer repairs. Please visit my website at http://www.TeresaQuinan.com
Remember, no home is going to be perfect. Even a brand new home can have issues and many times they are worse than a house that has some age on it. If you aren't comfortable with the seller doing the repairs you can always negotiate a repair allowance and you can have the repairs done to your standards after you own the home.
Most sellers are willing to do the repairs rather than put the house back on the market.
I wish you better luck with your next purchase!