The message Error: read ECONNRESET is from the mongosh client. The server was shutdown and now the client connection is reset, this is an expected message.
This CTRL+C is exiting the mongosh client, the server was already shutdown.
This would depend on how the server was started. The same --dbpath (or configuration file) would need to be specified so the same database data files.
For local development the atlas cli can be used to create and manage local deployments with the added benefit of supporting Full Text Search and Vector Search.