It is likely that your $10,000 is at risk, although it is impossible to answer this question without looking at your contract. Do you not have a real estate attorney helping you with this transaction? One thing that might help you legitimately get out of the contract is if you have not reached the mortgage contingency date and something falls apart with your mortgage.
You should have this conversation with your attorney. If you do not have one, I would be happy to consider representing you to see if I can help you through this difficulty.
This answer does not constitute legal advice and does not and is not intended to create an attorney-client relationship. The law may vary depending on the state in which you reside. It is intended only to give some direction in which to seek assistance.