The real lesson to be learned: don't jump out on a limb without pre-established safety net.
Moving to a new country seems like pretty big risk to take on a 3 month contract. Heck I wouldn't move from a current job to another one in town without a signing bonus to cover the risk.