fix hanging if mongo already running