Removed keepalive and made it the default, having this optional served no purpose and was annoying.
Added some handling for the connection going down
Added debug logging