Added some comments.
Handle activate.
To handle race condition, added callback after creating CoreHandler.