Added improved error message when mongo connection fails.