Yes - since this is a custom filter, in theory the user could have inserted another filter that doesn't implement CloseNotifier, and I believe it is implementation specific, so some OS might not implement it. 

Either way the assertion is needed for the compiler.