1) In command prompt type
netstat -a -o -n
2) find the PID number for that port number
Proto Local Address Foreign Address State PID
TCP 0.0.0.0:8009 0.0.0.0:0 LISTENING 5840
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 5840
3) In command prompt type
taskkill /F /PID 5840
This will kill process 5840 forcefully and release port 8009, 8080.