move the terminal reset functionallity to the shutdown method