Use "closedialog" function just for player input dialogue end.