From what I see the disconnection is caused by your first issue: "no security definition..."

Have a look at this documentation: https://interactivebrokers.github.io/tws-api/rtd_fqa_errors.html#rtd_common_errors_no_security