Wires can only be terminated in junction boxes, even if you have turned off the breaker. If you want to abandon the wire in the wall, then it needs to be disconnected from the breaker and capped or pulled completely out of the panel.