Proper shutdown of NEMP