Fix to add extra error handling in Tristate control class
Fix to do proper sudo process in Tristate control class