fix worker close (kill method wasnt working)