Asynchronous ping with AnyEvent