cleanup assignment of handler to endpoint instance