Added exceptions and notification for when a session becomes invalidated