Identify the source of the problem, explore possible fixes (different CC's, adding blackspots, useful plugins), TEST out these solutions before you just let the bot go again. Make sure that it doesn't do the same mistake again. Do not take anything for granted. If you are running a farming profile, watch the bot go over the profile several times, noting spots that you need to avoid and prevent it. Just take a few extra minutes to confirm the safety and security of your setup.
Got banned as a mage - only using singular , no plugins - was basicly a clean honorbuddy