fixes #33, close https client if target connection fails

Figured I could use the practice playing around in the code base :)