Bail on MongoDB connection error