apply patch for monitor cleanup when disabled/removed