Generaly speaking CAP’s should be sent before PASS/NICK
And you may want to wati for the ACK’s of the CAP’s before running joins.
i wonder if you are being dropped from ban evasion or something weird along those lines. Which wouldn’t raise something visible but this is clutchy at straws