Provide callback for network connected and disconnected. And handle auto unregistered broadcast receiver when activity or fragment was destroyed.