linting-fix: remove unused variables

`copy` No longer used within index.js
`tls` No longer used within index.js
`error_connecting` was never used, and seems to have been added by accident here: 54e6dfb77d57757d4006982f813ebaab9e005cd5