I think you need to `mutexify` all accesses to values in `rms`. Server commands typically happen in a seperate duppy thread..