Yes, getting fired sucks if you're on an H1B but your comment doesn't apply to job changers generally. H1B visas are transferable (with a little paperwork) so an employee looking to move jobs just needs to ensure that they have their ducks lined up and that any required paper work is filed - usually that means lighting a fire under the HR team of the new employer to make sure it doesn't slip through the cracks.