It is acceptable to leave wire in the wall. Leaving the ends exposed in boxes and wire nut is the only thing you need to do. If someone tries to tie into them in the future, it will cause the breaker to pop.
Let's Get It Fixed!
Our virtual experts can diagnose your issue (for free!) and resolve simple problems.