fix scope of issuelog in attemptReconnect
Merge pull request #137 from ianshward/reconnect-scope-fix

fix scope of issuelog in attemptReconnect