Refactored delete logger, and add trap for hackers