use ThreadHangDetector (defined in main app)