Handling the task canceled exception.