Of course a total closure would be a last resort, because that would cut off imports of things like fresh fruit, but it's been possible to get 20-minute pinprick blood tests since April (admittedly with lower accuracy than PCR tests) - the government simply decided measures like testing everyone at the border and enforcing mandatory self-isolation were not priorities.