Adds client destructor to ensure event bindings are correctly removed in all cases