Instead of crashing when the MongoClient breaks, a new one should be created. (Also I should use auto-ssh for my ssh-tunnels.)