ENH: updated ctrl script to added exit status to terminate command