If Mongo error, wait and reconnect