Make S3Target clean up when using format