Remove active event sources on the destructor.
Show more information on the assertion.