Format code and update strategy for OSX
When child process exit, OSX will focus on parent window.Append custome hold time to make sure us we have enough time to 'click' the window.