fix thread blocking issue in playerstop function