fix 40x close connections