removed re-run item and added check for terminating command