It's not a failure, just part of learning – and even people with lots of experience of meditating will still have wandering minds sometimes.
It's important to remember that a wandering mind is a natural part of meditation practice. It's not a failure, just part of learning – and even people with lots of experience of meditating will still have wandering minds sometimes.