Wandering of the mind is a common thing of human. The mind always tends to travel with thoughts. That time, all you need is a little break from the work you are doing. You just need a small frame of time and be quiet.