If you are out of status for less than 180 days it may be possible to retrieve H-1B status outside the US.
Tallk to an attorney and figure out good solution for you.