Add some try catch for rare exceptions