Avoid duplicate invocation of handler.