Moved try catch block back to client gui