Remove terminate flag/lock