Add debugging to deadman process