Fix a terminal issue
Created by: clusterfack
An issue as yet unreported on github, SMES can be crowbar destroyed before their terminal is destroyed leaving an immortal terminal. Also adds a way to deconstruct terminals that have been left behind by a machine without getting destroyed for the purposes of sanity.