As for stopping the metalogger, this whole script assumes that the master is dead so the metalogger isn't doing much work at the moment.