AFAIK, You need to be careful about changing jobs though, if you are out of work for some amount of time (a month?) your visa expires on you.
You are correct that out-of-work is a very bad place to be as an H1B holder. But USCIS allows you to interview for a different job, apply for visa transfer to the new company and quit the old company after the visa transfer is approved.