Better comments.
Unref connection after connection failure.
Make everything a handle.