kmf cleanup