added heartbeat check to master to ensure stale workers are removed from state tracker