print item after deleting it, in case of misdeleteing
fix bug that using os.Exit() would exit too early