Updated connection and release pwm pins on disconnect.