Improved handling of MongoDB errors before app starts (now much more debuggable)