fix the problem that trap_listener on close will call undefined method