I'm afraid the problem seems to lay elsewhere, then. The 'main' function (called by the line this.main() ) is the entire mod, and since the command to print the "Loading finished" message comes after 'main' is finished running, that means my entire mod is being loaded successfully, and it's whatever it's trying to do next that's causing the issue.
How i can check the problem? Or can you write any advice or can we talk in discord for this problem?