v1.11: Two bug fixes, some minor improvements

- Bug fix: calculations for next ping were bad, resulting in ping flood
- Bug fix: avoid some Perl warnings under perl -w
- Improvement: Emit warnings on stderr if connection failed
- Improvement: Prevent possible infinite recursion