add a clear function to clear alarms when disconnected.