new: implement 'terminate' functionality

@schaubl Here you are :)