Sometimes you may feel distant from God. Recognize it for what it is - a feeling. Do not confuse it with reality.
The Bible is full of promises that God will always be with us. Jesus' last recorded promise to His followers (and you) was that He would be with us always. Let this assurance fill you with joy and peace. No matter what you lose in this life, you can never lose your relationship with God.
Go, therefore, and make disciples of all nations, baptizing them in the name of the Father, and of the Son, and of the holy Spirit, teaching them to observe all that I have commanded you. And behold, I am with you always, until the end of the age.”