Fixed hanging SSL conenction. Added timeouts