What kind of permissions do we need to run this? Maybe we should check it at the beginning (eg. before stopping the metalogger) if this operation will be possible?