Make sure the process quits cleanly when its unloaded