Improved error handling on queued command execution