Unload kernel modules from nodes

When you need to remove a kernel module or switch to a different version, unload the module cleanly so you can avoid leaving the system in an inconsistent state.