Add some try catch guards around sorting and filtering exceptions