@GKevinOD,
The checkMainScreen was working well as it looks more clean and faster in restarting bluestack and coc. Not sure if this is the expected process of restarting bluestack and coc. What I see is, bluestack instantly back to homepage, after few second, coc came up without loading and the coc was at where my last load page (last searched base).
If the top process is correct then I think there is some loop problem where while searching for base, checkMainScreen activated and restart coc successfully but the screen was still at the last searched base instead of back to my own base and the next bot action is zoomout,train.......

