Why do I lose my connection when my iPhone screen goes dark

I have never had a problem connecting with the magic box 2. But now when I'm connected to my iPhone and my iPhone screen goes dark I lose the magic box connection.

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0