Racket-smasher Ivanisevic quits in anger