fixed error of threads handling when nmap scan is ran async