Add validation to release PWM pins, only do it if board is connected.