To find out which processes are holding a port open (although it doesn't tell you which port) use the following command:
OH -t file | FINDSTR /l "\Endpoint \AsyncConnectHlp \AsyncSelectHlp" then you can kill processes to identify which port they were using.