App instance prevented to be cleared on logout