corrected issue in server ping() IndexError exception handling