+1 on Mr. Red suggestions. Having various means for communication with people that can help you get home comes to mind. I always have a stash of cash for emergencies when abroad as well as some concept of an exit plan if worldly affairs go sour and risk getting stuck. Stay up to speed on current events and issues that may affect you in the area you’re visiting.
It’s great you’re giving this topic consideration.