Andy Murray: I wanted to quit over injury