update terminate mem monitor