Added handler for mongodb connection issues