trying to make worker stop properly