Adding mongodb exceptions logging