Close tech dialog correctly.