 Relations were particularly close with Ubico, who helped Carías reorganize his secret police and also captured and shot the leader of a Honduran uprising who had made the mistake of crossing into Guatemalan territory.Relations with Nicaragua were somewhat more strained as a result of the continuing border dispute, but Carías and Somoza managed to keep this dispute under control throughout the 1930s and 1940s.The value of these ties became somewhat questionable in 1944 when popular revolts in Guatemala and El Salvador deposed Ubico and Hernández Martínez.