Fortify id/connection on reply/error

Signed-off-by: Julien Danjou <julien@danjou.info>