System Thread Exception not Handled – Causes and fixes