Stop moving if connection is lost