enhance script cleaning using trap
CLOSE #3