added ability to kill terminal