Rule dry runs call tasks directly inside an atomic block they roll back. The connection cleanup wrapper closed that connection, so every dry run failed with a 500.