If you have not closed, you can have your loan officer assist you with a denial.. It is pretty easy to get denied, your realtor will not tell you that either, and imply an EMD is done if you pull the deal.. but the truth is denials happen every day .. even the day before closing. Tell your processor, you are losing your job in a week or 2, or your short funds to clos, as you spent them.
in 99.999% of the time a denial on a loan program is reason to get your EMD back ... and you can start over. ( you will not likly get back any funds with the lender for an appraisal, but they will likely put a "credit" in your file if you buy a different home.. if you randomly don't lose your job.

)