He was legally allowed to leave