fixes #33, close https client if target connection fails