How to close all torrent ports on Windows [closed]

I used to use Deluge to download stuff from torrent (like Linux ISOs), but now I stopped doing it as it’s a huge risk security-wise. I uninstalled Deluge, but I wonder what I have to do to find out whether some torrent ports are still open and I’m at risk of being attacked.

Also, is there a way to find out if I’ve been attacked through torrent?