Added try/except to compensate for bad connection