Stop worker gracefully