The termination of a software is considered to be the failure of the project. A software should be maintained, and optimized over the period of time. This is how a software turns into a technology, and that is where the success of a software belongs. In order to make a software project successful we need to follow the certain steps.
The figure drawn above shows the essential steps of the software development in my eyes.
Further reading: SDLC