Sorry, being laid off from work is not an exception to the 10% early withdrawal penalty.
You could have rolled the distribution over to another tax deferred account, such as an IRA, within 60 days so none of the distribution would be taxed nor have the early withdrawal penalty.