initClientMain() can be invoke more than once