Fix bot count

Fix bot count being overridden by number of bots saved in the xml file.
Create a new list in case the bots list gets corrupted.
Opcodes cleanup

Ignore some opcodes and mark some others as "not implemented yet" but required.
Handle some possible exceptions on shutdown.