qmgr: Use FAILED instead of !SUCCEEDED.