Not sure how much work this will take, but it could avoid improper startup and cleanup errors like moped errors ("Could not connect to any secondary or primary nodes for replica set") and leftover mongod processes ("Creating Server TCP listening socket *:6379: bind: Address already in use").