more reliable way of stopping thin