terminate process on halt command