Additional Faulty Task Handling
Added isError() and sorting.