fix possible dead lock when dask_to_parquet throws an exception

1 job for !243 with add_array_support in 30 minutes and 53 seconds (queued for 4 seconds)
latest merge request