If we are open of eyes, ears, and intuition, we will see that every time something doesn't go the way we wanted it to, it makes space and time for something new and different... even giving us the chance to experience situations and apparent obstacles that might help us aim for something better. We might not always notice it immediately, but somehow when we look back we can realize how things fit together in the bigger scheme of this puzzle. So, next time something doesn't go our way, instead of complaining and struggling against the present (which won't help anyway) we can use that energy to understand that there's a reason behind this, and even if we can't change what already happened, we can create something better for what is to come.
Nothing in the universe is lost. Life doesn't waste resources. ;)