fixing error handler: assumption about socket, plus tying into *display-errors* when spitting out generic error response.