Unit test cleanup.
Unregister on_event callbacks.
Close method for client