Working with successful and failed asynchronous queries