GSMSSL Client only connects once

I wanted to create a class with which I can make https requests easily, by just providing a URL and a path and the port aswell. As a return I would get a String the server has sent back. But this wrapper class can only be executed once, and only in the setup() section of the program. Do you know how I could solve this issue? I posted the question in more detail and with code example on Arduino's Stack Exchange: https://arduino.stackexchange.com/questions/55862/gsmsslclient-only-works-once