Ensure that the embedded MongoDB starts before it gets used