fix scope of issuelog in attemptReconnect