When things aren't working out, relax. Even if it's your fault and you deserve everything that's happening to you, trust in God that everything happens for a reason, and stay calm.
When He sees how much you trust Him, He will make it truly for your good.