How can you get mad because God did not make something work out that probably wasn't God ordained anyway? You are mad because you wanted something and He said no! You should be thanking Him for keeping you out of that situation! God knows the long term effects of our actions and He knows what is best for us. So instead of losing your faith how about you go deeper in your faith and get to know God and then you will understand why He kept you from that situation. We have to stop being so small minded when it comes to our God! HE IS GOD! Thank God for knowing better than we do!
God Bless!