Unregister self to avoid memory leak