Do you pray to escape or enter more deeply into reality?

When we are troubled, we long for reprieve. But do we only pray to escape our messy reality? Or can prayer become a means for us to become more present to God's loving presence with us in the midst of our reality?