Added trys to the iterations so that it doesnt kill the server if it returns nil