Improved tasks output and cleaning the terminating