Fix reference to 'this' in ping error handler

Fix #728.

Signed-off-by: Don Naegely <naegelyd@gmail.com>