Fixed bot cloning keep references to previous bot

Closing bot wizard now saves the bot config (in case of crashes)