protected static void ExceptionHandler(Exception ex) { if(ConnectionFactory.onException != null) { ConnectionFactory.onException(ex); } }