handle notify dirty exit