If you cannot get money from any other source and you need money for something like staving off foreclosure (financial hardship), you can withdraw money with no penalty. Taxes would be need to be paid and you can only withdraw the exact amount you need.