It came two days after the election of third-party candidate Luis Guillermo Solis as the next president of the nation of under five million people and represents a significant setback to its bid to become a high-tech hub.
Outgoing President Laura Chinchilla tried to downplay the double impact.
"Some will leave, but others will take their place," she said.