Babu,
According to my understanding, if your 140 got denied after you get your EAD (or AP), your 485 (which is the basis of EAD and AP) will be denied and thus the EAD and AP will become invalid.
Now, this is the principle. How exactly will happen after getting EAD/AP and 140 got denied is still a mystery to me. Maybe there are members who have such experience (really unfortunate of course) can share.
A.