Problem stopping scripts

Hi, when I run some scripts bots and click the square button in the top left corner to stop them sometimes the client itself freezes and i have to restart it. This is very inconvenient when i am attempting to stop the script bot in order to respond to a random event or a player so as not to look suspicious and get banned. An example is maxifisher or maxiwoodcutter as to scripts bots that freeze, anyone help?