Fixed infinite loop when pinging nonexistant ip