I-140 withdrawal -> His I-485 denial -> Your I-485 denial -> 1) invalidateing your EAD; 2) terminating your AOS -> you need to leave the country unless you are in possession of a valid non-immigrant status