When things don't happen the way that we want we become restless. We try to fulfill our restless soul with material things, when God is the only one that can fulfill that need. When we don't deal with our restlessness it will haunt and hurt us. When we do what God tells us to do, restlessness steps aside.
Keep an open mind, know that everything that you are going through it is not permanent. When you are going through difficult times, don't turn your back on God, for that is the worst thing that you can do. YOU have to desire God's presence. The farther away you get from God, the harder it is for you to hear Him.