fixed crash on minimizing
handle failed media