set a TRAP for clean-ups