Fix crashes when creating the request

We now obtain the peer address before creating the Req object.
If an error occurs, then something went wrong, we close the connection
nicely directly.