Problematic was communication with card maker Gemalto, who didn't inform Estonia about security flaws properly. Gemalto was informed by researchers in March. These researchers informed Estonian government in August. Few days after that prime minister announced security problems.
Things would have been a lot of easier if Gemalto didn't hide the problem from the government.