uper: close serial on reset
pwm: zero out PWM_PORT global on UPER re-creation