Added the 'terminate' method
Implemented and tested an improved application workflow