[865758] Improved error handling of MongoDB connection problems