In homestore shutdown process, repl dev is released before statemachine(also held by logstore), and repl dev doesn't aware of the statemachine status.
In baseline resync, read_snapshot is async and might access replDev, so reading snapshot and shutdown happen simultaneously, crash may occur.