Fix a bug where the XInput ExternalModule wasn't being freed by System
Disable all devices before deletion in System destructor, to avoid memory leaks in end-user application