extract error logging from Server#request

fixes #480