Prevent a crash when exiting while the settings window is open.
Add AtmoDuino v2 device, based on RickDBs AtmoDuino with a few improvements