The consequences of any action whether it is good or terrible is an opportunity for improvement and next action. Every situation has its loopholes and that loopholes are the opportunity to be taken.
Situations build walls to keep us out; we will find more walls within walls if move away from it. What we are supposed to do is seek doors within these walls. These walls has tiny holes and we have to peer through this tiny holes and find the key that opens the door- the door of opportunity to make an impact so the we can have access to it.
Every situations brings an opportunity with itself. It depends upon the eye of beholder to find it.