Cleanup delete artifact try-finally code