private void registerInternetConnectionChangeReceiver() {
    IntentFilter filter = new IntentFilter();
    filter.addAction(InternetConnectionChangeReceiver.INTENT);
    context.registerReceiver(internetConnectionChangeReceiver, filter);
  }
Unregisters NetworkEvents.
It should be executed in onDestroy() method in activity
or during destroying instance of class extending Application.
network-events-library/src/main/java/com/github/pwittchen/networkevents/library/NetworkEvents.java