[#23] Add worker#emit error check about pageMod and detaching worker