[enh] Function _exit()
[enh] Use logger instead of print