There is a unit test for each of the ending closing conditions that you can step through.  The basic pattern is that unsubscribe, onComplete or onError the SafeSubscribe will ignore any additional exceptions.