added default worker_failed callback to write to logger