fixes invalid state error when appending data to source buffer on Chrome
another improvement for player shutdown