Add ClearKitsEvent, fix potential NPE for autoupdater