Certainly a good lesson on not to just leave a drone to its own devices while you set up another camera.
VLOS means more than just being able to see a drone, it's also about having the ability to take control if it in the event of mishap. You did well in this case to spot it and retake control.