Sounds like the sensor to me, it's also the more common and less expensive issue with soft close, the more expensive being the motor but since that seems to work fine when you unplug and plug back in I'd 90% say dodgy sensor/s.
I also know of someone who fixed a very similar sounding issue by...