nohang: Fix command failure not properly being recognized