Before this commit, the web_client slows down because callbacks are added many times without ever being removed.