When running nmap with either sudo_run or sudo_run_background without passwordless sudo, the command will hang waiting for input. In the case where passwordless setup is required and mistakenly not set up, this will cause a silent failure.
I suggest adding a parameter to these functions to run sudo with -n so that the command will fail if sudo requires a password.