fix promise check for logout notification