restart worker correctly