I find it hard to believe that you did not know that sometime, in the near future, you did not know you were going to deploy. You usually receive deployment orders a few months prior, and you also train SEVERAL months prior. So, you "just receiving" your orders, and not knowing about it, seem hard for me to believe. Anyway, on to your question.
The Soldiers and sailors act, will only keep the interest down on the Mortgage to under a certain percentage, NOT get out of the contract. What you got was a loan, and you must pay your financial obligations, not anyone else. The act does allow you to terminate a lease on a car, end a contract for an apartment or any other "temporary" contracts that you may have. ie (gym member ships, tanning salon memberships.ETC)
A lot of service members still pay their mortagmortgages serving, and get most of it payed off because of the extra pay they reiceve, as well as the interest rate cap. I would advise that you take advantage of this.