Add to update Method for CloseProgramm Event to avoid NoSuchMethodError