Attempt to fix mongoose connection problems after the connection fails after some time