proper exception handling, now it only seems like the ping isn't working.