Fix terminate after throwing error code
Fix -Wunused-variable
Fix -Wreorder
CAdapterFactory: don't crash if controller dies
Merge branch 'PlugNPlay' of github.com:scj7t4/FREEDM into PlugNPlay