Handle exception for no gui connection
Bulletproofing