Updated to handle if the timeout is exceeded for checkconnections