for JS shape reasons, please init this.conn to null in the else case.