Implement unsubscribe, and onClose, and etc.