Upgrading module crashes gateway when devices present

Mr. Herron, thank you for encouraging me to empower myself. IntelliJ with remote debugging is excellent.

My problem had to do with loading and unloading a dll.

I was following this suggestion here

If I stepped through the execution with the debuger everything would be fine. Does this imply that the dll load is async and one should wait some time before trying to reference it?

I’ve opted for catching the “UnsatisfiedLinkError” during the ModuleHook.setup() instead of unloading the library during ModuleHook.shutdown().