Added exception catch for pingcore