proc_mgmt: make sure that exit message is sent before things are