We need to wait for the done() signal before we can query the handle (cherry picked from commit 8007dcf4)