Moved worker terminate to removeBot function