handling uncaught exception error
Some more error connection rest stuff