fix return error on ping failure
Merge pull request #21 from nwlunatic/fix_ping_failure

fix return error on ping failure