Any reason not to put the `err` onto this error object, and not log an error below in the `if(!socket.ctx) {` block?