fix connection errors crashing web server