correctly check shutdown state before ignoring ZeroReturnError