Can this be in line with the `leavegroup` widget:

```
    // Refresh the network list
    $(document).trigger('oae.unfollow.done');

    // If no errors occurred, close the modal
    if (errCount === 0) {
        $('#unfollow-modal', $rootel).modal('hide');
    }
```