yes a lot of things like that as you walk on and later on it got wasted, in life things happen like that but the solution is that we must make our mind strong.
anything we are doing we should expect the worst and also believe in the best, what I mean by expect the worse is that we should prepare for the worst so it wont be sudden.
when you prepare for things you have the provision of the solution so you won't be affected or frustrated