Immigration officer looking for your wife's out of status, which occures as soon as she looses her job. You should have changed her H1 to h4 immediately, but now too late. Options are go back to India for few months and apply H4. She can not stay in H1 for a long time it makes her stay illegal.