Added error handling for /ping command responses