added logic to automatically dismiss the notification once disconnected.