send offline status when closed