Make state handlers internal
Global counter for deleted jobs