Added in wait till player close state.