Fix manual restart of beat and worker