deinit can be invoked before init in ClientMain.java