mongoexport: don't try to connect if settings validation fails