Handler for gearman workers