That's a pisser. Sorry to here about your problems. Do you feel they understood your concerns or were they not interested in listening and backing down to your requests or just different cultures, employer/employee respect?
Understand the possible problems, your employers expectations, your employers understand your expectations and understand the contracted expected deliverables.