made server less sensitive to connection failures