Logging exceptions to the sorting