fix for notification message on state exiting