1. Improve the performance of subscribe/unsubscribe/message event logic.
2. Remove duplicates clearHandlers call.