add a stop() method

it works.I hope it has a stop, restart, and maybe other more methods.