catching media player illegal state error