Yes. ‘onLogout’ event gets emitted because of logout happening for reasons mentioned here.  This is to aid use cases such as updating status on the UI.