Notify the delegate of events after updating our internal state

Should the delegate decide to inspect the given EventSource, its state should
be consistent. Otherwise, the following assertion would fail:

- (void)eventSourceDidClose:(TRVSEventSource *)eventSource {
    NSAssert(eventSource.isClosed, @"Event source should be closed");
}