Fix #42 add event handlers are run before remove handlers under client mode