Fix #90: Event is not ended when clearHash is called.