Fix error reporting for asynchronous commands