C9 and mongod.lock file


Every time I log off C9, my MongoDb connection drops and I have to delete a mongod.lock file.
Should I shut down MongoDb before logging off C9 to prevent this behavior? If so, will Ctrl C shutdown MongoDb the same way you shut down an Express app?