Allow users to opt-out of sending the UDP ping and improve error handling when the sendto syscall fails

Signed-off-by: Clemens Gruber <clemensgru@gmail.com>