If I quit my job due to relocation to another country what is the best way to withdraw my 401K with a standing loan avoiding expenses as much as possible?

should I move it to an Roth IRA, Traditional IRA, or make the withdrawal straight from my 401k? If Unemployed, Tax implications living in NJ?