beremiz

Add safety check to prevent exception when disconnecting while debugging
/**
* No platform specific code for "Generic" target
**/