How to correctly handoff process state using bitwalker/swarm

I’m not super well versed with Swarm but I think that handoff only happens if the node that is going down is allowed to gracefully exit. It sounds like you were force killing the node. If you force kill the node it has no time to do this handoff. You can try :init.stop() as described here: Graceful shutdown on SIGTERM? to see if that graceful shutdown triggers the handoff.