fixed broken promises when host goes down