Carla Server (uses Unreal Engine) crashes after some time

Hi, I am using Python Client which communicates with Carla server to save some images. The Carla server works fine for taking some images (like > 30), after which it crashes.

One of the details is that the client frequently connects and disconnects to the Carla server which is intentional since I want to change the starting position of the car.

The Unreal engine version is specifically 4.18.3. Is crashing a known bug in this version? I could try to update it to the latest version but I am not sure if Carla supports latest version. I am using Carla 0.8.2 released version on Windows 10 64 bit.

I could probably use some way of automatically restarting the server whenever it crashes, since client can re-connect with a restarted server.

Any help would be appreciated. Thanks.