check if statement is null before close
drop noentries table befor create: avoid exception