Add ServerErrorHandler

Please add a comment here that says 'writing to the closed socket'