remove trap handler in cleanup