wondering why they dont do this

So i was playing a fantastic game today on my Iphone 4, (real racing) and im in the middle of a race i'm all into it in first place and then i get a text.
No problem i click close and then i have 3 sec to get back in the zone, then i get another text, same thing 3 sec but its still not perfect ...
then i get a PHONE CALL and it just ruins it i loose the race

so im wondering, why dont applications have some sort of feature where you have the option of putting your Iphone in some sort of i guess"airplane" mode where you cannot recieve text and/or calls.
Of course leaving on the wifi ability so you can do the multiplayer etc but man!! the interruptions of the txt phone call really annoy me

what do you all think?
There is if you JB your phone...
but is it universal for all apps that i use? and im jailbreaking as soon as the dev team releases the update for 4.1!1

Original thread: https://forums.imore.com/threads/wondering-why-they-dont-do-this.199205/