Thanks so much for the info, Alexb.
So when you missed your connection because of custom/immigration, did the airline put you on the next available flight? Can the airline refuse to put you on another flight because you missed the connection for a reason that wasn't the fault of the airline?