added "isconnected" check to InputPin and OutputPin methods (was causing error on system shutdown when Weeco4mGPIO was not enabled)